This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
mastodon/app/assets/javascripts/components/features/ui/components/columns_area.jsx

28 lines
435 B
React
Raw Normal View History

import PureRenderMixin from 'react-addons-pure-render-mixin';
const style = {
display: 'flex',
flex: '1 1 auto',
overflowX: 'auto'
};
const ColumnsArea = React.createClass({
propTypes: {
children: React.PropTypes.node
},
mixins: [PureRenderMixin],
render () {
return (
<div className='columns-area' style={style}>
{this.props.children}
</div>
);
}
});
export default ColumnsArea;