diff --git a/services/web/frontend/js/features/project-list/components/project-list-events.ts b/services/web/frontend/js/features/project-list/components/project-list-events.ts index eda62016ed..03e426bc7e 100644 --- a/services/web/frontend/js/features/project-list/components/project-list-events.ts +++ b/services/web/frontend/js/features/project-list/components/project-list-events.ts @@ -1,5 +1,4 @@ import { useCallback } from 'react' -import { useSplitTestContext } from '@/shared/context/split-test-context' import { sendMB } from '@/infrastructure/event-tracking' export type ExtraSegmentations = { @@ -39,16 +38,11 @@ export type ExtraSegmentations = { } export const useSendProjectListMB = () => { - const { splitTestVariants } = useSplitTestContext() - const hasDsNav = splitTestVariants['sidebar-navigation-ui-update'] as - | 'default' - | 'active' return useCallback( ( event: T, payload: ExtraSegmentations[T] - ) => - sendMB(event, { ...payload, 'sidebar-navigation-ui-update': hasDsNav }), - [hasDsNav] + ) => sendMB(event, payload), + [] ) } diff --git a/services/web/frontend/js/features/project-list/components/project-list-root.tsx b/services/web/frontend/js/features/project-list/components/project-list-root.tsx index 420b2454ab..abb26d3b71 100644 --- a/services/web/frontend/js/features/project-list/components/project-list-root.tsx +++ b/services/web/frontend/js/features/project-list/components/project-list-root.tsx @@ -20,7 +20,7 @@ import ProjectListDefault from '@/features/project-list/components/project-list- import { ProjectListDsNav } from '@/features/project-list/components/project-list-ds-nav' import { DsNavStyleProvider, - useIsDsNav, + hasDsNav, } from '@/features/project-list/components/use-is-ds-nav' function ProjectListRoot() { @@ -82,8 +82,6 @@ function ProjectListPageContent() { const { t } = useTranslation() - const hasDsNav = useIsDsNav() - if (isLoading) { const loadingComponent = ( diff --git a/services/web/frontend/js/features/project-list/components/sidebar/sidebar-filters.tsx b/services/web/frontend/js/features/project-list/components/sidebar/sidebar-filters.tsx index 799ccbd6f3..58b17a0de9 100644 --- a/services/web/frontend/js/features/project-list/components/sidebar/sidebar-filters.tsx +++ b/services/web/frontend/js/features/project-list/components/sidebar/sidebar-filters.tsx @@ -5,7 +5,7 @@ import { } from '../../context/project-list-context' import TagsList from './tags-list' import ProjectsFilterMenu from '../projects-filter-menu' -import { useIsDsNav } from '@/features/project-list/components/use-is-ds-nav' +import { hasDsNav } from '@/features/project-list/components/use-is-ds-nav' type SidebarFilterProps = { filter: Filter @@ -30,7 +30,6 @@ export function SidebarFilter({ filter, text }: SidebarFilterProps) { export default function SidebarFilters() { const { t } = useTranslation() - const hasDsNav = useIsDsNav() return (