Skip to content

Commit

Permalink
remove isRequired attribute from name prop
Browse files Browse the repository at this point in the history
  • Loading branch information
alisher-epam committed Nov 8, 2023
1 parent aa88a10 commit 8f882d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/Donors/Donors.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ 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),
};

Donors.defaultProps = {
donorOrganizationIds: [],
name: 'donorOrganizationIds',
columnMapping: defaultColumnMapping,
};
2 changes: 1 addition & 1 deletion lib/Donors/DonorsContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lib/Donors/DonorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
};

Expand Down
2 changes: 1 addition & 1 deletion lib/Donors/DonorsLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8f882d9

Please sign in to comment.