diff --git a/lib/Donors/DonorsContainer.js b/lib/Donors/DonorsContainer.js index 65e2ae08..13122016 100644 --- a/lib/Donors/DonorsContainer.js +++ b/lib/Donors/DonorsContainer.js @@ -5,7 +5,10 @@ import { useIntl } from 'react-intl'; import { useStripes } from '@folio/stripes/core'; -import { defaultContainerVisibleColumns } from './constants'; +import { + defaultContainerVisibleColumns, + pluginVisibleColumns, +} from './constants'; import { DonorsList } from './DonorsList'; import { DonorsLookup } from './DonorsLookup'; import { getDonorsFormatter } from './utils'; @@ -19,6 +22,7 @@ export function DonorsContainer({ formatter, id, onRemove, + pluginVisibleColumns: pluginVisibleColumnsProp, setDonorIds, searchLabel, showTriggerButton, @@ -81,7 +85,7 @@ export function DonorsContainer({ onAddDonors={onAddDonors} name={id} searchLabel={searchLabel} - visibleColumns={visibleColumns} + visibleColumns={pluginVisibleColumnsProp} /> ) } @@ -102,10 +106,12 @@ DonorsContainer.propTypes = { setDonorIds: PropTypes.func.isRequired, showTriggerButton: PropTypes.bool, visibleColumns: PropTypes.arrayOf(PropTypes.string), + pluginVisibleColumns: PropTypes.arrayOf(PropTypes.string), }; DonorsContainer.defaultProps = { onRemove: noop, showTriggerButton: true, visibleColumns: defaultContainerVisibleColumns, + pluginVisibleColumns, };