Skip to content

Instantly share code, notes, and snippets.

@jeremeylduvall
Created December 13, 2017 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremeylduvall/bb9a8def023c8362b528c629aa46ee62 to your computer and use it in GitHub Desktop.
Save jeremeylduvall/bb9a8def023c8362b528c629aa46ee62 to your computer and use it in GitHub Desktop.
Layouts index.js file
import React from 'react';
import PropTypes from 'prop-types';
import './index.css';
const TemplateWrapper = ( { children } ) => (
<div>
<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