mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2025-11-02 20:23:32 +08:00
cleanup (structure): update code structure
This commit is contained in:
16
client/utilities/container.js
Normal file
16
client/utilities/container.js
Normal 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>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user