about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/ui/components/columns_area.jsx
blob: dd771900d2863ca2e998bc854a3a27eae7366dc2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;