Adding React.js, Redux, revamping dashboard
This commit is contained in:
parent
68c93f8b85
commit
49520d6e62
34 changed files with 297 additions and 75 deletions
22
app/assets/javascripts/components/components/status_list.jsx
Normal file
22
app/assets/javascripts/components/components/status_list.jsx
Normal file
|
@ -0,0 +1,22 @@
|
|||
import Status from './status';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
|
||||
const StatusList = React.createClass({
|
||||
propTypes: {
|
||||
statuses: ImmutablePropTypes.list.isRequired
|
||||
},
|
||||
|
||||
render: function() {
|
||||
return (
|
||||
<div style={{ overflowY: 'scroll', flex: '1 1 auto' }}>
|
||||
<div>
|
||||
{this.props.statuses.map((status) => {
|
||||
return <Status key={status.get('id')} status={status} />;
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export default StatusList;
|
Loading…
Add table
Add a link
Reference in a new issue