From 8f882d9ce294589a8d75b0ef64abfb58ecae0f8b Mon Sep 17 00:00:00 2001 From: Alisher Musurmonov Date: Wed, 8 Nov 2023 12:19:11 +0500 Subject: [PATCH] remove isRequired attribute from name prop --- lib/Donors/Donors.js | 3 ++- lib/Donors/DonorsContainer.js | 2 +- lib/Donors/DonorsList.js | 2 +- lib/Donors/DonorsLookup.js | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/Donors/Donors.js b/lib/Donors/Donors.js index 3b7390a0..7754b0f6 100644 --- a/lib/Donors/Donors.js +++ b/lib/Donors/Donors.js @@ -40,7 +40,7 @@ Donors.propTypes = { columnMapping: PropTypes.object, columnWidths: PropTypes.object, donorOrganizationIds: PropTypes.arrayOf(PropTypes.string), - name: PropTypes.string.isRequired, + name: PropTypes.string, searchLabel: PropTypes.node, showTriggerButton: PropTypes.bool, visibleColumns: PropTypes.arrayOf(PropTypes.string), @@ -48,5 +48,6 @@ Donors.propTypes = { Donors.defaultProps = { donorOrganizationIds: [], + name: 'donorOrganizationIds', columnMapping: defaultColumnMapping, }; diff --git a/lib/Donors/DonorsContainer.js b/lib/Donors/DonorsContainer.js index dfc36486..64e4b7b4 100644 --- a/lib/Donors/DonorsContainer.js +++ b/lib/Donors/DonorsContainer.js @@ -90,7 +90,7 @@ DonorsContainer.propTypes = { donors: PropTypes.arrayOf(PropTypes.object), fields: PropTypes.object, formatter: PropTypes.object, - id: PropTypes.string.isRequired, + id: PropTypes.string, searchLabel: PropTypes.node, setDonorIds: PropTypes.func.isRequired, showTriggerButton: PropTypes.bool, diff --git a/lib/Donors/DonorsList.js b/lib/Donors/DonorsList.js index 6165cf4f..feb75162 100644 --- a/lib/Donors/DonorsList.js +++ b/lib/Donors/DonorsList.js @@ -34,7 +34,7 @@ DonorsList.propTypes = { columnWidths: PropTypes.object, contentData: PropTypes.arrayOf(PropTypes.object).isRequired, formatter: PropTypes.object, - id: PropTypes.string.isRequired, + id: PropTypes.string, visibleColumns: PropTypes.arrayOf(PropTypes.string), }; diff --git a/lib/Donors/DonorsLookup.js b/lib/Donors/DonorsLookup.js index c66e5aef..a070aa3d 100644 --- a/lib/Donors/DonorsLookup.js +++ b/lib/Donors/DonorsLookup.js @@ -56,7 +56,7 @@ const DonorsLookup = ({ DonorsLookup.propTypes = { onAddDonors: PropTypes.func.isRequired, - name: PropTypes.string.isRequired, + name: PropTypes.string, showTriggerButton: PropTypes.bool, searchLabel: PropTypes.node, visibleColumns: PropTypes.arrayOf(PropTypes.string),