Skip to content

Commit

Permalink
UISACQCOMP-212: Add isMultiSelect prop to DonorsLookup component
Browse files Browse the repository at this point in the history
  • Loading branch information
mariia-aloshyna authored Aug 21, 2024
2 parents 74abbe3 + 46a47f8 commit 88d54ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* ECS - clear Select location filters on change another Affiliation. Refs UISACQCOMP-208.
* Support using custom list of tenants when open the locations modal. Refs UISACQCOMP-210.
* ECS - Display all consortium tenants in the affiliation selection of the location lookup. Refs UISACQCOMP-202.
* Add isMultiSelect prop to DonorsLookup component. Refs UISACQCOMP-212.

## [5.1.1](https://github.com/folio-org/stripes-acq-components/tree/v5.1.1) (2024-04-22)
[Full Changelog](https://github.com/folio-org/stripes-acq-components/compare/v5.1.0...v5.1.1)
Expand Down
5 changes: 4 additions & 1 deletion lib/Donors/DonorsLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const DonorsLookup = ({
searchLabel,
visibleColumns,
searchButtonStyle,
isMultiSelect,
}) => {
const stripes = useStripes();

Expand All @@ -43,7 +44,7 @@ export const DonorsLookup = ({
initialFilters={initialFilters}
searchableIndexes={searchableIndexes}
visibleFilters={visibleFilters}
isMultiSelect
isMultiSelect={isMultiSelect}
sortableColumns={sortableColumns}
columnWidths={columnWidths}
>
Expand All @@ -61,10 +62,12 @@ DonorsLookup.propTypes = {
visibleColumns: PropTypes.arrayOf(PropTypes.string),
columnWidths: PropTypes.object,
searchButtonStyle: PropTypes.string,
isMultiSelect: PropTypes.bool,
};

DonorsLookup.defaultProps = {
searchLabel: <FormattedMessage id="stripes-acq-components.donors.button.addDonor" />,
visibleColumns: pluginVisibleColumns,
searchButtonStyle: 'default',
isMultiSelect: true,
};

0 comments on commit 88d54ed

Please sign in to comment.