From 9530e42f71f9685ab3625da1998bbe83658c76b8 Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Thu, 15 Mar 2018 20:31:39 +0100 Subject: [PATCH] Add Container Component --- ui/src/component/Container.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 ui/src/component/Container.js diff --git a/ui/src/component/Container.js b/ui/src/component/Container.js new file mode 100644 index 0000000..0394609 --- /dev/null +++ b/ui/src/component/Container.js @@ -0,0 +1,28 @@ +import React, {Component} from 'react'; +import {withStyles} from 'material-ui/styles'; +import Paper from 'material-ui/Paper'; +import PropTypes from 'prop-types'; + +const styles = () => ({ + paper: { + padding: 16, + }, +}); + +class Container extends Component { + static propTypes = { + classes: PropTypes.object.isRequired, + children: PropTypes.node, + }; + + render() { + const {classes, children} = this.props; + return ( + + {children} + + ); + } +} + +export default withStyles(styles)(Container);