diff --git a/packages/atlas/src/config/routes.ts b/packages/atlas/src/config/routes.ts index d45586def0..1a72ef1632 100644 --- a/packages/atlas/src/config/routes.ts +++ b/packages/atlas/src/config/routes.ts @@ -50,6 +50,7 @@ export const relativeRoutes = { memberNotifications: () => 'notifications/member', marketplace: () => 'marketplace', ypp: (query?: { [QUERY_PARAMS.REFERRER_ID]?: string }) => withQueryParameters('ypp', query), + yppTest: () => 'ypp/test-variation', yppDashboard: () => 'ypp-dashboard', referrals: () => 'referrals', }, diff --git a/packages/atlas/src/views/global/YppLandingViewTest/index.tsx b/packages/atlas/src/views/global/YppLandingViewTest/index.tsx new file mode 100644 index 0000000000..0b652d23e3 --- /dev/null +++ b/packages/atlas/src/views/global/YppLandingViewTest/index.tsx @@ -0,0 +1,5 @@ +import { FC } from 'react' + +export const YppLandingViewTest: FC = () => { + return
YppLandingViewTest
+} diff --git a/packages/atlas/src/views/viewer/ViewerLayout.tsx b/packages/atlas/src/views/viewer/ViewerLayout.tsx index 7a5f081a63..3701c18470 100644 --- a/packages/atlas/src/views/viewer/ViewerLayout.tsx +++ b/packages/atlas/src/views/viewer/ViewerLayout.tsx @@ -25,6 +25,9 @@ import { RoutingState } from '@/types/routing' const YppLandingView = lazy(() => import('@/views/global/YppLandingView').then((module) => ({ default: module.YppLandingView })) ) +const YppLandingViewTest = lazy(() => + import('@/views/global/YppLandingViewTest').then((module) => ({ default: module.YppLandingViewTest })) +) const MemberNotificationsView = lazy(() => import('@/views/notifications').then((module) => ({ default: module.MemberNotificationsView })) ) @@ -60,7 +63,10 @@ const viewerRoutes = [ { path: relativeRoutes.viewer.member(), element: }, { path: relativeRoutes.viewer.marketplace(), element: }, ...(atlasConfig.features.ypp.googleConsoleClientId - ? [{ path: relativeRoutes.viewer.ypp(), element: }] + ? [ + { path: relativeRoutes.viewer.ypp(), element: }, + { path: relativeRoutes.viewer.yppTest(), element: }, + ] : []), { path: relativeRoutes.viewer.referrals(), element: }, ]