Files
old-new-wiaas/frontend/src/containers/dashboard/components/NextActionsList.jsx

28 lines
835 B
React
Raw Normal View History

2018-06-14 16:49:28 +02:00
import React, {Component} from 'react';
import NextActionItem from './NextActionItem';
import {WiaasTable, WiaasTableBody} from '../../../mainComponents/table/WiaasTable.jsx';
class NextActionsList extends Component {
render() {
const {nextActions} = this.props;
return (
<div>
<WiaasTable>
<WiaasTableBody>
{
nextActions &&
nextActions.map((nextAction, index) =>
<NextActionItem key={'action-' + nextAction.order_number + index} nextAction={nextAction}/>
2018-06-14 16:49:28 +02:00
)
}
</WiaasTableBody>
</WiaasTable>
</div>
);
}
}
export default NextActionsList;