diff --git a/app/@types/nextjs-routes.d.ts b/app/@types/nextjs-routes.d.ts index 79d87f2..5b61bbc 100644 --- a/app/@types/nextjs-routes.d.ts +++ b/app/@types/nextjs-routes.d.ts @@ -24,8 +24,8 @@ declare module "nextjs-routes" { | StaticRoute<"/experiments"> | StaticRoute<"/home"> | StaticRoute<"/"> + | StaticRoute<"/project/settings"> | StaticRoute<"/sentry-example-page"> - | StaticRoute<"/settings"> | StaticRoute<"/world-champs"> | StaticRoute<"/world-champs/signup">; diff --git a/app/src/components/nav/AppShell.tsx b/app/src/components/nav/AppShell.tsx index 43f2217..c577d55 100644 --- a/app/src/components/nav/AppShell.tsx +++ b/app/src/components/nav/AppShell.tsx @@ -87,7 +87,7 @@ const NavSidebar = () => { > CONFIGURATION - + {user && } diff --git a/app/src/components/nav/ProjectMenu.tsx b/app/src/components/nav/ProjectMenu.tsx index 827f7c7..3a38afb 100644 --- a/app/src/components/nav/ProjectMenu.tsx +++ b/app/src/components/nav/ProjectMenu.tsx @@ -53,7 +53,7 @@ export default function ProjectMenu() { const newOrg = await createMutation.mutateAsync({ name: "New Project" }); await utils.organizations.list.invalidate(); setSelectedOrgId(newOrg.id); - await router.push({ pathname: "/settings" }); + await router.push({ pathname: "/project/settings" }); }, [createMutation, router]); const openMenu = useCallback( @@ -195,7 +195,7 @@ const ProjectOption = ({ {org.name} } variant="ghost" diff --git a/app/src/pages/settings/index.tsx b/app/src/pages/project/settings/index.tsx similarity index 100% rename from app/src/pages/settings/index.tsx rename to app/src/pages/project/settings/index.tsx