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.

22 lines
529 B

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