|
|
@@ -3,10 +3,7 @@ import {
|
|
|
ProjectListProvider,
|
|
|
useProjectListContext,
|
|
|
} from '../context/project-list-context'
|
|
|
-import {
|
|
|
- SplitTestProvider,
|
|
|
- useSplitTestContext,
|
|
|
-} from '@/shared/context/split-test-context'
|
|
|
+import { SplitTestProvider } from '@/shared/context/split-test-context'
|
|
|
import { ColorPickerProvider } from '../context/color-picker-context'
|
|
|
import * as eventTracking from '../../../infrastructure/event-tracking'
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
@@ -21,6 +18,10 @@ import Footer from '@/features/ui/components/bootstrap-5/footer/footer'
|
|
|
import WelcomePageContent from '@/features/project-list/components/welcome-page-content'
|
|
|
import ProjectListDefault from '@/features/project-list/components/project-list-default'
|
|
|
import { ProjectListDsNav } from '@/features/project-list/components/project-list-ds-nav'
|
|
|
+import {
|
|
|
+ DsNavStyleProvider,
|
|
|
+ useIsDsNav,
|
|
|
+} from '@/features/project-list/components/use-is-ds-nav'
|
|
|
|
|
|
function ProjectListRoot() {
|
|
|
const { isReady } = useWaitForI18n()
|
|
|
@@ -75,16 +76,13 @@ function ProjectListPageContent() {
|
|
|
const { totalProjectsCount, isLoading, loadProgress } =
|
|
|
useProjectListContext()
|
|
|
|
|
|
- const { splitTestVariants } = useSplitTestContext()
|
|
|
-
|
|
|
useEffect(() => {
|
|
|
eventTracking.sendMB('loads_v2_dash', {})
|
|
|
}, [])
|
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
- const hasDsNav =
|
|
|
- splitTestVariants['sidebar-navigation-ui-update'] === 'active'
|
|
|
+ const hasDsNav = useIsDsNav()
|
|
|
|
|
|
if (isLoading) {
|
|
|
const loadingComponent = (
|
|
|
@@ -109,7 +107,11 @@ function ProjectListPageContent() {
|
|
|
</DefaultPageContentWrapper>
|
|
|
)
|
|
|
} else if (hasDsNav) {
|
|
|
- return <ProjectListDsNav />
|
|
|
+ return (
|
|
|
+ <DsNavStyleProvider>
|
|
|
+ <ProjectListDsNav />
|
|
|
+ </DsNavStyleProvider>
|
|
|
+ )
|
|
|
} else {
|
|
|
return (
|
|
|
<DefaultPageContentWrapper>
|