Archived
2
0
Fork 0
This repository has been archived on 2024-06-09. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
mastodon/app/assets/javascripts/components/features/ui/components/drawer.jsx

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;