You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
617 B

  1. import Status from './status';
  2. import ImmutablePropTypes from 'react-immutable-proptypes';
  3. import PureRenderMixin from 'react-addons-pure-render-mixin';
  4. const StatusList = React.createClass({
  5. propTypes: {
  6. statuses: ImmutablePropTypes.list.isRequired
  7. },
  8. mixins: [PureRenderMixin],
  9. render () {
  10. return (
  11. <div style={{ overflowY: 'scroll', flex: '1 1 auto' }}>
  12. <div>
  13. {this.props.statuses.map((status) => {
  14. return <Status key={status.get('id')} status={status} />;
  15. })}
  16. </div>
  17. </div>
  18. );
  19. }
  20. });
  21. export default StatusList;