Skip to content

Commit

Permalink
add YPP test variation page
Browse files Browse the repository at this point in the history
  • Loading branch information
kdembler committed May 2, 2024
1 parent 4fea4dc commit 785088e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/atlas/src/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down
5 changes: 5 additions & 0 deletions packages/atlas/src/views/global/YppLandingViewTest/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { FC } from 'react'

export const YppLandingViewTest: FC = () => {
return <div>YppLandingViewTest</div>
}
8 changes: 7 additions & 1 deletion packages/atlas/src/views/viewer/ViewerLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }))
)
Expand Down Expand Up @@ -60,7 +63,10 @@ const viewerRoutes = [
{ path: relativeRoutes.viewer.member(), element: <MemberView /> },
{ path: relativeRoutes.viewer.marketplace(), element: <MarketplaceView /> },
...(atlasConfig.features.ypp.googleConsoleClientId
? [{ path: relativeRoutes.viewer.ypp(), element: <YppLandingView /> }]
? [
{ path: relativeRoutes.viewer.ypp(), element: <YppLandingView /> },
{ path: relativeRoutes.viewer.yppTest(), element: <YppLandingViewTest /> },
]
: []),
{ path: relativeRoutes.viewer.referrals(), element: <ReferralsView /> },
]
Expand Down

0 comments on commit 785088e

Please sign in to comment.