This commit is contained in:
2024-03-17 03:39:38 +03:00
parent e2962f3be2
commit cc14105276
24 changed files with 4218 additions and 42 deletions

View File

@@ -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,