Updated pages, layout component structures
• Updated: - pages, layout component structures
This commit is contained in:
@@ -1,27 +1,24 @@
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import AboutLayout from '../layouts/about_layout'
|
||||
|
||||
export default class AboutPage extends PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
children: PropTypes.node.isRequired,
|
||||
}
|
||||
class AboutPage extends PureComponent {
|
||||
|
||||
render() {
|
||||
const { children, title } = this.props
|
||||
|
||||
return (
|
||||
<AboutLayout
|
||||
noComposeButton
|
||||
showBackBtn
|
||||
title={title}
|
||||
page='about'
|
||||
>
|
||||
<AboutLayout title={title}>
|
||||
<PageTitle path={title} />
|
||||
{children}
|
||||
</AboutLayout>
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
AboutPage.propTypes = {
|
||||
title: PropTypes.string.isRequired,
|
||||
children: PropTypes.node.isRequired,
|
||||
}
|
||||
|
||||
export default AboutPage
|
||||
Reference in New Issue
Block a user