2020-08-17 21:07:16 +01:00
|
|
|
import React from 'react'
|
2020-08-17 21:59:29 +01:00
|
|
|
import PropTypes from 'prop-types'
|
2020-08-06 06:12:03 +01:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
2020-08-12 23:52:46 +01:00
|
|
|
import {
|
|
|
|
LinkFooter,
|
|
|
|
ProgressPanel,
|
|
|
|
ShopPanel,
|
|
|
|
SignUpPanel,
|
|
|
|
VerifiedAccountsPanel,
|
|
|
|
} from '../features/ui/util/async_components'
|
2020-08-06 06:12:03 +01:00
|
|
|
|
2020-08-17 21:07:16 +01:00
|
|
|
class NewsPage extends React.PureComponent {
|
2020-08-06 06:12:03 +01:00
|
|
|
|
|
|
|
render() {
|
|
|
|
const { children, title } = this.props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
2020-08-14 18:45:59 +01:00
|
|
|
page='news'
|
2020-08-06 06:12:03 +01:00
|
|
|
title={title}
|
|
|
|
noComposeButton
|
|
|
|
showBackBtn
|
|
|
|
layout={[
|
2020-08-12 23:52:46 +01:00
|
|
|
SignUpPanel,
|
|
|
|
ProgressPanel,
|
|
|
|
VerifiedAccountsPanel,
|
|
|
|
ShopPanel,
|
|
|
|
LinkFooter,
|
2020-08-06 06:12:03 +01:00
|
|
|
]}
|
|
|
|
>
|
|
|
|
<PageTitle path={title} />
|
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2020-08-14 18:45:59 +01:00
|
|
|
|
|
|
|
NewsPage.propTypes = {
|
|
|
|
children: PropTypes.node.isRequired,
|
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
|
|
|
|
export default NewsPage
|