othr
This commit is contained in:
@@ -19,6 +19,7 @@ import { Route as rootRoute } from './routes/__root'
|
||||
const TestLazyImport = createFileRoute('/test')()
|
||||
const LoginLazyImport = createFileRoute('/login')()
|
||||
const LeadsLazyImport = createFileRoute('/leads')()
|
||||
const ClientsLazyImport = createFileRoute('/clients')()
|
||||
const IndexLazyImport = createFileRoute('/')()
|
||||
|
||||
// Create/Update Routes
|
||||
@@ -38,6 +39,11 @@ const LeadsLazyRoute = LeadsLazyImport.update({
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any).lazy(() => import('./routes/leads.lazy').then((d) => d.Route))
|
||||
|
||||
const ClientsLazyRoute = ClientsLazyImport.update({
|
||||
path: '/clients',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any).lazy(() => import('./routes/clients.lazy').then((d) => d.Route))
|
||||
|
||||
const IndexLazyRoute = IndexLazyImport.update({
|
||||
path: '/',
|
||||
getParentRoute: () => rootRoute,
|
||||
@@ -51,6 +57,10 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof IndexLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/clients': {
|
||||
preLoaderRoute: typeof ClientsLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/leads': {
|
||||
preLoaderRoute: typeof LeadsLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
@@ -70,6 +80,7 @@ declare module '@tanstack/react-router' {
|
||||
|
||||
export const routeTree = rootRoute.addChildren([
|
||||
IndexLazyRoute,
|
||||
ClientsLazyRoute,
|
||||
LeadsLazyRoute,
|
||||
LoginLazyRoute,
|
||||
TestLazyRoute,
|
||||
|
||||
Reference in New Issue
Block a user