cleanup (structure): update code structure

This commit is contained in:
Mickael KERJEAN
2017-06-27 17:50:27 +10:00
parent 58de01a16c
commit 0b5137846c
49 changed files with 4 additions and 7 deletions

View File

@ -0,0 +1,16 @@
import React from 'react'
import PropTypes from 'prop-types';
export class Container extends React.Component {
constructor(props){
super(props);
}
render() {
const style = Object.assign({width: '95%', maxWidth: this.props.maxWidth || '800px', margin: '0 auto', padding: '10px'}, this.props.style || {});
return (
<div style={style}>
{this.props.children}
</div>
);
}
}