-
-
Save jeremeylduvall/bb9a8def023c8362b528c629aa46ee62 to your computer and use it in GitHub Desktop.
Layouts index.js file
This file contains 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 './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