1
0
REI-Fixed/app/assets/javascripts/components/features/ui/components/columns_area.jsx
Yamagishi Kazutoshi 1948f9e767 Remove deprecated features at React v15.5 (#1905)
* Remove deprecated features at React v15.5

- [x] React.PropTypes
- [x] react-addons-pure-render-mixin
- [x] react-addons-test-utils

* Uncommented out & Add browserify_rails options

* re-add react-addons-shallow

* Fix syntax error from resolve conflicts

* follow up 59a77923b3
2017-04-21 20:05:35 +02:00

26 lines
386 B
JavaScript

import PropTypes from 'prop-types';
const style = {
display: 'flex',
flex: '1 1 auto',
overflowX: 'auto'
};
class ColumnsArea extends React.PureComponent {
render () {
return (
<div className='columns-area' style={style}>
{this.props.children}
</div>
);
}
}
ColumnsArea.propTypes = {
children: PropTypes.node
};
export default ColumnsArea;