diff --git a/web/src/app/router.tsx b/web/src/app/router.tsx index 73cb0ff3..d7b564ca 100644 --- a/web/src/app/router.tsx +++ b/web/src/app/router.tsx @@ -104,6 +104,7 @@ const PromotionsPage = createRoleProtectedRouteComponent( ['SKILL_ADMIN', 'SUPER_ADMIN'], ) const MyStarsPage = createLazyRouteComponent(() => import('@/pages/dashboard/stars'), 'MyStarsPage') +const MySubscriptionsPage = createLazyRouteComponent(() => import('@/pages/dashboard/subscriptions'), 'MySubscriptionsPage') const NotificationsPage = createLazyRouteComponent(() => import('@/pages/notifications'), 'NotificationsPage') const TokensPage = createLazyRouteComponent(() => import('@/pages/dashboard/tokens'), 'TokensPage') const CliAuthPage = createLazyRouteComponent(() => import('@/pages/cli-auth'), 'CliAuthPage') @@ -325,6 +326,13 @@ const dashboardStarsRoute = createRoute({ component: MyStarsPage, }) +const dashboardSubscriptionsRoute = createRoute({ + getParentRoute: () => rootRoute, + path: 'dashboard/subscriptions', + beforeLoad: requireAuth, + component: MySubscriptionsPage, +}) + const dashboardNotificationsRoute = createRoute({ getParentRoute: () => rootRoute, path: 'dashboard/notifications', @@ -429,6 +437,7 @@ const routeTree = rootRoute.addChildren([ dashboardReviewDetailRoute, dashboardPromotionsRoute, dashboardStarsRoute, + dashboardSubscriptionsRoute, dashboardNotificationsRoute, dashboardTokensRoute, cliAuthRoute,