Files
old-new-wiaas/frontend/src/containers/dashboard/components/NextActionsList.jsx
2018-08-08 16:48:17 +02:00

28 lines
835 B
JavaScript

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}/>
)
}
</WiaasTableBody>
</WiaasTable>
</div>
);
}
}
export default NextActionsList;