Skip to content

Commit

Permalink
(PC-33718) refactor(useHasThematicPageList): replace magic string
Browse files Browse the repository at this point in the history
  • Loading branch information
nmajorfrances-pass committed Jan 10, 2025
1 parent 737a4d5 commit ca91245
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { SearchGroupNameEnumv2 } from 'api/gen'
import { useFeatureFlag } from 'libs/firebase/firestore/featureFlags/useFeatureFlag'
import { RemoteStoreFeatureFlags } from 'libs/firebase/firestore/types'

Expand All @@ -15,11 +16,11 @@ export const useHasAThematicPageList = () => {
RemoteStoreFeatureFlags.WIP_THEMATIC_SEARCH_MUSIC
)
return [
enableWipPageThematicSearchBooks ? 'LIVRES' : undefined,
enableWipPageThematicSearchCinema ? 'CINEMA' : undefined,
enableWipPageThematicSearchBooks ? SearchGroupNameEnumv2.LIVRES : undefined,
enableWipPageThematicSearchCinema ? SearchGroupNameEnumv2.CINEMA : undefined,
enableWipPageThematicSearchFilmsDocumentairesEtSeries
? 'FILMS_DOCUMENTAIRES_SERIES'
? SearchGroupNameEnumv2.FILMS_DOCUMENTAIRES_SERIES
: undefined,
enableWipPageThematicSearchMusic ? 'MUSIQUE' : undefined,
enableWipPageThematicSearchMusic ? SearchGroupNameEnumv2.MUSIQUE : undefined,
]
}

0 comments on commit ca91245

Please sign in to comment.