Skip to content

Instantly share code, notes, and snippets.

@saigowthamr
Created April 4, 2018 05:03
Show Gist options
  • Select an option

  • Save saigowthamr/a2ad35e5f5ab5d32fba11a09f0335c4e to your computer and use it in GitHub Desktop.

Select an option

Save saigowthamr/a2ad35e5f5ab5d32fba11a09f0335c4e to your computer and use it in GitHub Desktop.
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