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