diff --git a/CHANGELOG.md b/CHANGELOG.md index 080f4a65..3ada17e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lib/Donors/DonorsLookup.js b/lib/Donors/DonorsLookup.js index 1663b53d..e4284b7a 100644 --- a/lib/Donors/DonorsLookup.js +++ b/lib/Donors/DonorsLookup.js @@ -23,6 +23,7 @@ export const DonorsLookup = ({ searchLabel, visibleColumns, searchButtonStyle, + isMultiSelect, }) => { const stripes = useStripes(); @@ -43,7 +44,7 @@ export const DonorsLookup = ({ initialFilters={initialFilters} searchableIndexes={searchableIndexes} visibleFilters={visibleFilters} - isMultiSelect + isMultiSelect={isMultiSelect} sortableColumns={sortableColumns} columnWidths={columnWidths} > @@ -61,10 +62,12 @@ DonorsLookup.propTypes = { visibleColumns: PropTypes.arrayOf(PropTypes.string), columnWidths: PropTypes.object, searchButtonStyle: PropTypes.string, + isMultiSelect: PropTypes.bool, }; DonorsLookup.defaultProps = { searchLabel: , visibleColumns: pluginVisibleColumns, searchButtonStyle: 'default', + isMultiSelect: true, };