From ed7000a3a3c3b876bcf89156ca9182af7db93936 Mon Sep 17 00:00:00 2001 From: Kira Miller Date: Wed, 27 Sep 2023 21:44:00 +0000 Subject: [PATCH] fix: remove free/all filter --- packages/catalog-search/src/SearchFilters.jsx | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/packages/catalog-search/src/SearchFilters.jsx b/packages/catalog-search/src/SearchFilters.jsx index 22af6e4e..06ceabc6 100644 --- a/packages/catalog-search/src/SearchFilters.jsx +++ b/packages/catalog-search/src/SearchFilters.jsx @@ -20,18 +20,6 @@ export const FREE_ALL_TITLE = 'Free / All'; const SearchFilters = ({ variant }) => { const { refinements, searchFacetFilters } = useContext(SearchContext); - const freeAllItems = useMemo(() => [ - { - label: 'Free to me', - // flip the 1 to 0 or vice versa using boolean logic - // eslint-disable-next-line no-bitwise - value: refinements[SHOW_ALL_NAME] ^ 1, - }, - { - label: 'All courses', - value: refinements[SHOW_ALL_NAME], - }, - ], [refinements[SHOW_ALL_NAME]]); const searchFacets = useMemo( () => { @@ -60,17 +48,6 @@ const SearchFilters = ({ variant }) => { )); return ( <> - {features.ENROLL_WITH_CODES && ( - - )} {filtersFromRefinements} {features.LEARNING_TYPE_FACET && ()}