Updated pages, layout component structures

• Updated:
- pages, layout component structures
This commit is contained in:
mgabdev
2020-08-14 12:45:59 -05:00
parent 67e1082cf5
commit 014e476b5d
23 changed files with 461 additions and 500 deletions

View File

@@ -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