mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
26 lines
438 B
JavaScript
26 lines
438 B
JavaScript
import PureRenderMixin from 'react-addons-pure-render-mixin';
|
|
|
|
const style = {
|
|
boxSizing: 'border-box',
|
|
background: '#454b5e',
|
|
padding: '0',
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
overflowY: 'auto'
|
|
};
|
|
|
|
const Drawer = React.createClass({
|
|
|
|
mixins: [PureRenderMixin],
|
|
|
|
render () {
|
|
return (
|
|
<div className='drawer' style={style}>
|
|
{this.props.children}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
});
|
|
|
|
export default Drawer;
|