crap
This commit is contained in:
@@ -17,6 +17,7 @@ import { Route as rootRoute } from './routes/__root'
|
||||
// Create Virtual Routes
|
||||
|
||||
const TestLazyImport = createFileRoute('/test')()
|
||||
const ServicesLazyImport = createFileRoute('/services')()
|
||||
const LoginLazyImport = createFileRoute('/login')()
|
||||
const LeadsLazyImport = createFileRoute('/leads')()
|
||||
const ClientsLazyImport = createFileRoute('/clients')()
|
||||
@@ -29,6 +30,11 @@ const TestLazyRoute = TestLazyImport.update({
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any).lazy(() => import('./routes/test.lazy').then((d) => d.Route))
|
||||
|
||||
const ServicesLazyRoute = ServicesLazyImport.update({
|
||||
path: '/services',
|
||||
getParentRoute: () => rootRoute,
|
||||
} as any).lazy(() => import('./routes/services.lazy').then((d) => d.Route))
|
||||
|
||||
const LoginLazyRoute = LoginLazyImport.update({
|
||||
path: '/login',
|
||||
getParentRoute: () => rootRoute,
|
||||
@@ -69,6 +75,10 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof LoginLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/services': {
|
||||
preLoaderRoute: typeof ServicesLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
}
|
||||
'/test': {
|
||||
preLoaderRoute: typeof TestLazyImport
|
||||
parentRoute: typeof rootRoute
|
||||
@@ -83,6 +93,7 @@ export const routeTree = rootRoute.addChildren([
|
||||
ClientsLazyRoute,
|
||||
LeadsLazyRoute,
|
||||
LoginLazyRoute,
|
||||
ServicesLazyRoute,
|
||||
TestLazyRoute,
|
||||
])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user