Skip to content

Commit

Permalink
implement safe navigation for the rest of the pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkarimoff authored and jthrilly committed Jun 10, 2024
1 parent ec0bb41 commit 1152bf9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ export const { routes, useSafeParams, useSafeSearchParams } =
home: defineRoute('/'),
signIn: defineRoute('/signin'),
signUp: defineRoute('/signup'),
interview: defineRoute('/interview/[interviewId]', {
params: z.object({
interviewId: z.string(),
}),
}),
interviewFinished: defineRoute('/interview/finished'),
onboardProtocolRoute: defineRoute('/onboard/[protocolId]', {
params: z.object({
protocolId: z.string(),
}),
}),
onboardError: defineRoute('/onboard/error'),
onboardNoAnonymousRecruitment: defineRoute(
'/onboard/no-anonymous-recruitment',
),
orgDashboard: defineRoute('/[org]', {
params: z.object({
org: z.string(),
Expand Down

0 comments on commit 1152bf9

Please sign in to comment.