Skip to content

Commit

Permalink
chore: remove old index.ts file for the help page
Browse files Browse the repository at this point in the history
  • Loading branch information
tokerson committed May 6, 2024
1 parent a058709 commit b0f4f8e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
27 changes: 16 additions & 11 deletions src/routeTree.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,37 @@

// This file is auto-generated by TanStack Router

import { createFileRoute } from '@tanstack/react-router'

// Import Routes

import { Route as rootRoute } from './routes/__root'
import { Route as IndexImport } from './routes/index'
import { Route as UsersIndexImport } from './routes/users/index'
import { Route as HelpIndexImport } from './routes/help/index'
import { Route as AboutIndexImport } from './routes/about/index'
import { Route as UsersIdIndexImport } from './routes/users/$id/index'

// Create Virtual Routes

const HelpIndexLazyImport = createFileRoute('/help/')()

// Create/Update Routes

const IndexRoute = IndexImport.update({
path: '/',
getParentRoute: () => rootRoute,
} as any)

const HelpIndexLazyRoute = HelpIndexLazyImport.update({
path: '/help/',
getParentRoute: () => rootRoute,
} as any).lazy(() => import('./routes/help/index.lazy').then((d) => d.Route))

const UsersIndexRoute = UsersIndexImport.update({
path: '/users/',
getParentRoute: () => rootRoute,
} as any)

const HelpIndexRoute = HelpIndexImport.update({
path: '/help/',
getParentRoute: () => rootRoute,
} as any).lazy(() => import('./routes/help/index.lazy').then((d) => d.Route))

const AboutIndexRoute = AboutIndexImport.update({
path: '/about/',
getParentRoute: () => rootRoute,
Expand All @@ -56,14 +61,14 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof AboutIndexImport
parentRoute: typeof rootRoute
}
'/help/': {
preLoaderRoute: typeof HelpIndexImport
parentRoute: typeof rootRoute
}
'/users/': {
preLoaderRoute: typeof UsersIndexImport
parentRoute: typeof rootRoute
}
'/help/': {
preLoaderRoute: typeof HelpIndexLazyImport
parentRoute: typeof rootRoute
}
'/users/$id/': {
preLoaderRoute: typeof UsersIdIndexImport
parentRoute: typeof rootRoute
Expand All @@ -76,8 +81,8 @@ declare module '@tanstack/react-router' {
export const routeTree = rootRoute.addChildren([
IndexRoute,
AboutIndexRoute,
HelpIndexRoute,
UsersIndexRoute,
HelpIndexLazyRoute,
UsersIdIndexRoute,
])

Expand Down
7 changes: 0 additions & 7 deletions src/routes/help/index.tsx

This file was deleted.

0 comments on commit b0f4f8e

Please sign in to comment.