make page a React components

main
Mike Fix 6 years ago
parent b9144edea4
commit 6babce42a9

@ -3,7 +3,10 @@ import Meta from './Meta'
import Header from './Header'
import Footer from './Footer'
export default ({ children, enableHeroText }) => (
class Page extends React.Component {
render() {
const { children, enableHeroText } = this.props
return (
<main className="main mt4 mb4">
<Meta />
<Header enableHeroText={enableHeroText} />
@ -23,4 +26,8 @@ export default ({ children, enableHeroText }) => (
`}
</style>
</main>
)
)
}
}
export default Page

Loading…
Cancel
Save