2020-03-04 03:45:16 +00:00
|
|
|
import { Fragment } from 'react'
|
2020-04-11 23:29:19 +01:00
|
|
|
import PageTitle from '../features/ui/util/page_title'
|
2020-05-03 06:22:49 +01:00
|
|
|
import DefaultLayout from '../layouts/default_layout'
|
2020-03-04 03:45:16 +00:00
|
|
|
import LinkFooter from '../components/link_footer'
|
|
|
|
import TrendsPanel from '../components/panel/trends_panel'
|
2020-05-03 06:22:49 +01:00
|
|
|
import WhoToFollowPanel from '../components/panel/who_to_follow_panel'
|
2020-03-04 03:45:16 +00:00
|
|
|
|
|
|
|
export default class BasicPage extends PureComponent {
|
2020-05-03 06:22:49 +01:00
|
|
|
|
2020-03-04 03:45:16 +00:00
|
|
|
static propTypes = {
|
2020-04-11 23:29:19 +01:00
|
|
|
title: PropTypes.string.isRequired,
|
|
|
|
children: PropTypes.node.isRequired,
|
2020-03-04 03:45:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
const { children, title } = this.props
|
|
|
|
|
|
|
|
return (
|
|
|
|
<DefaultLayout
|
2020-05-07 06:55:24 +01:00
|
|
|
noComposeButton
|
2020-04-11 23:29:19 +01:00
|
|
|
showBackBtn
|
2020-03-04 03:45:16 +00:00
|
|
|
title={title}
|
|
|
|
layout={(
|
|
|
|
<Fragment>
|
|
|
|
<TrendsPanel />
|
|
|
|
<WhoToFollowPanel />
|
|
|
|
<LinkFooter />
|
|
|
|
</Fragment>
|
|
|
|
)}
|
|
|
|
>
|
2020-04-11 23:29:19 +01:00
|
|
|
<PageTitle path={title} />
|
2020-03-04 03:45:16 +00:00
|
|
|
{children}
|
|
|
|
</DefaultLayout>
|
|
|
|
)
|
|
|
|
}
|
2020-05-03 06:22:49 +01:00
|
|
|
|
2020-03-04 03:45:16 +00:00
|
|
|
}
|