Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Commit

Permalink
and IDs to approve/reject buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Lavigne committed Mar 7, 2017
1 parent 3f57172 commit 94ff0f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,21 @@ export const StormCard = (props) => {
Potential supply shortages due to weather.
Consider sending additional supplies to affected locations.

{recommendations.map(recommendation =>
{recommendations.map((recommendation, index) =>
<div className={classes.shipmentDialog} key={recommendation._id}>
<div className={classes.shipmentTitle}>
Shipment from {props.idToNameResolver.resolve('distributionCenter', recommendation.fromId)} to {props.idToNameResolver.resolve('retailer', recommendation.toId)}
</div>
<div className={classes.shipmentDialogActionContainer}>
<div
id={`reject-${index}`}
className={classes.shipmentDialogAction}
onClick={() => handleRecommendation(recommendation._id, false)}
>
Reject
</div>
<div
id={`approve-${index}`}
className={classes.shipmentDialogAction}
onClick={() => handleRecommendation(recommendation._id, true)}
>
Expand Down

0 comments on commit 94ff0f7

Please sign in to comment.