You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
438 B
27 lines
438 B
8 years ago
|
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
||
|
|
||
8 years ago
|
const style = {
|
||
|
boxSizing: 'border-box',
|
||
|
background: '#454b5e',
|
||
|
padding: '0',
|
||
|
display: 'flex',
|
||
8 years ago
|
flexDirection: 'column',
|
||
|
overflowY: 'auto'
|
||
8 years ago
|
};
|
||
|
|
||
8 years ago
|
const Drawer = React.createClass({
|
||
|
|
||
|
mixins: [PureRenderMixin],
|
||
|
|
||
|
render () {
|
||
|
return (
|
||
8 years ago
|
<div className='drawer' style={style}>
|
||
8 years ago
|
{this.props.children}
|
||
|
</div>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
});
|
||
|
|
||
|
export default Drawer;
|