2016-09-03 12:01:10 +00:00
|
|
|
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
|
|
|
|
2016-10-12 11:17:17 +00:00
|
|
|
const style = {
|
|
|
|
boxSizing: 'border-box',
|
|
|
|
background: '#454b5e',
|
|
|
|
padding: '0',
|
|
|
|
display: 'flex',
|
2016-10-16 15:09:00 +00:00
|
|
|
flexDirection: 'column',
|
|
|
|
overflowY: 'auto'
|
2016-10-12 11:17:17 +00:00
|
|
|
};
|
|
|
|
|
2016-09-03 12:01:10 +00:00
|
|
|
const Drawer = React.createClass({
|
|
|
|
|
|
|
|
mixins: [PureRenderMixin],
|
|
|
|
|
|
|
|
render () {
|
|
|
|
return (
|
2016-10-12 11:17:17 +00:00
|
|
|
<div className='drawer' style={style}>
|
2016-09-03 12:01:10 +00:00
|
|
|
{this.props.children}
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
export default Drawer;
|