Skip to content

Commit

Permalink
simplify the row formatter function
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 9, 2023
1 parent 1affaad commit 2f71a3e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Donors/DonorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@ export const DonorsList = ({
return formatterProp || getDonorsListFormatter({ canViewOrganizations });
}, [canViewOrganizations, formatterProp]);

const anchoredRowFormatter = (rowProp) => acqRowFormatter(rowProp);

return (
<MultiColumnList
id={id}
columnMapping={columnMapping}
contentData={contentData}
formatter={formatter}
rowFormatter={anchoredRowFormatter}
rowFormatter={acqRowFormatter}
rowProps={alignRowProps}
visibleColumns={visibleColumns}
columnWidths={columnWidths}
Expand Down

0 comments on commit 2f71a3e

Please sign in to comment.