Skip to content

Instantly share code, notes, and snippets.

@esshka
Created May 19, 2016 14:34
Show Gist options
  • Save esshka/31507319f837d8fed02642064ef1f35e to your computer and use it in GitHub Desktop.
Save esshka/31507319f837d8fed02642064ef1f35e to your computer and use it in GitHub Desktop.
const transferNodes =
transfers.map(tid =>
<TransferRow {...{
transfer: transfersById[tid],
key: `transfer-${tid}`,
toggleSelected: () => actions.toggleSelected(transfersById[tid]),
approveTransfer: () => actions.transferActionRequested(transfersById[tid], 'approve'),
cancelTransfer: () => actions.transferActionRequested(transfersById[tid], 'cancel'),
isLoading,
isSelected: some(selectedTransfers, stid => stid === tid)
}}/>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment