Created
April 4, 2018 05:03
-
-
Save saigowthamr/a2ad35e5f5ab5d32fba11a09f0335c4e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react' | |
| import PropTypes from 'prop-types' | |
| import Helmet from 'react-helmet' | |
| import Header from '../components/Header' | |
| import './index.css' | |
| const TemplateWrapper = ({ children }) => ( | |
| <div> | |
| <Helmet | |
| title="Gatsby Default Starter" | |
| meta={[ | |
| { name: 'description', content: 'Sample' }, | |
| { name: 'keywords', content: 'sample, something' }, | |
| ]} | |
| /> | |
| <Header /> | |
| <div | |
| style={{ | |
| margin: '0 auto', | |
| maxWidth: 960, | |
| padding: '0px 1.0875rem 1.45rem', | |
| paddingTop: 0, | |
| }} | |
| > | |
| {children()} | |
| </div> | |
| </div> | |
| ) | |
| TemplateWrapper.propTypes = { | |
| children: PropTypes.func, | |
| } | |
| export default TemplateWrapper |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment