Skip to content

Commit

Permalink
remove unused exports from navigation.ts temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkarimoff authored and jthrilly committed Jun 10, 2024
1 parent 1152bf9 commit e3b3450
Showing 1 changed file with 53 additions and 52 deletions.
105 changes: 53 additions & 52 deletions lib/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,64 +6,65 @@
import { createNavigationConfig } from 'next-safe-navigation';
import { z } from 'zod';

export const { routes, useSafeParams, useSafeSearchParams } =
createNavigationConfig((defineRoute) => ({
home: defineRoute('/'),
signIn: defineRoute('/signin'),
signUp: defineRoute('/signup'),
interview: defineRoute('/interview/[interviewId]', {
params: z.object({
interviewId: z.string(),
}),
// Todo: add back the useSafeParams and useSafeSearchParams exports below as needed
// deleting them temporarily because of knip errors
export const { routes } = createNavigationConfig((defineRoute) => ({
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(),
}),
}),
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(),
}),
}),
onboardError: defineRoute('/onboard/error'),
onboardNoAnonymousRecruitment: defineRoute(
'/onboard/no-anonymous-recruitment',
),
orgDashboard: defineRoute('/[org]', {
params: z.object({
org: z.string(),
}),
orgSettings: defineRoute('/[org]/settings', {
params: z.object({
org: z.string(),
}),
}),
orgSettings: defineRoute('/[org]/settings', {
params: z.object({
org: z.string(),
}),
orgProject: defineRoute('/[org]/[project]', {
params: z.object({
org: z.string(),
project: z.string(),
}),
}),
orgProject: defineRoute('/[org]/[project]', {
params: z.object({
org: z.string(),
project: z.string(),
}),
orgProjectParticipants: defineRoute('/[org]/[project]/participants', {
params: z.object({
org: z.string(),
project: z.string(),
}),
}),
orgProjectParticipants: defineRoute('/[org]/[project]/participants', {
params: z.object({
org: z.string(),
project: z.string(),
}),
orgProjectInterviews: defineRoute('/[org]/[project]/interviews', {
params: z.object({
org: z.string(),
project: z.string(),
}),
}),
orgProjectInterviews: defineRoute('/[org]/[project]/interviews', {
params: z.object({
org: z.string(),
project: z.string(),
}),
orgProjectProtocols: defineRoute('/[org]/[project]/protocols', {
params: z.object({
org: z.string(),
project: z.string(),
}),
}),
orgProjectProtocols: defineRoute('/[org]/[project]/protocols', {
params: z.object({
org: z.string(),
project: z.string(),
}),
orgProjectSettings: defineRoute('/[org]/[project]/settings', {
params: z.object({
org: z.string(),
project: z.string(),
}),
}),
orgProjectSettings: defineRoute('/[org]/[project]/settings', {
params: z.object({
org: z.string(),
project: z.string(),
}),
}));
}),
}));

0 comments on commit e3b3450

Please sign in to comment.