diff --git a/src/components/MediatedRequestsActivities/components/MediatedRequestsFilters/MediatedRequestsFilters.js b/src/components/MediatedRequestsActivities/components/MediatedRequestsFilters/MediatedRequestsFilters.js index 8ef6c01..c622d43 100644 --- a/src/components/MediatedRequestsActivities/components/MediatedRequestsFilters/MediatedRequestsFilters.js +++ b/src/components/MediatedRequestsActivities/components/MediatedRequestsFilters/MediatedRequestsFilters.js @@ -1,5 +1,3 @@ -import PropTypes from 'prop-types'; - import { stripesConnect } from '@folio/stripes/core'; import { @@ -11,18 +9,13 @@ import { import { getIsTitleLevelRequestsFeatureEnabled, } from '../../../../utils'; +import { + useGeneralTlrSettings +} from '../../../../hooks'; -const SETTINGS_SCOPES = { - CIRCULATION: 'circulation', -}; -const SETTINGS_KEYS = { - GENERAL_TLR: 'generalTlr', -}; - -const MediatedRequestsFilters = ({ - resources, -}) => { - const isTitleLevelRequestsFeatureEnabled = getIsTitleLevelRequestsFeatureEnabled(resources); +const MediatedRequestsFilters = () => { + const { data } = useGeneralTlrSettings(); + const isTitleLevelRequestsFeatureEnabled = getIsTitleLevelRequestsFeatureEnabled(data); return (