Created switches
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
import { Route as TabIndexRouteImport } from './routes/tab/index'
|
||||
import { Route as SwitchIndexRouteImport } from './routes/switch/index'
|
||||
import { Route as ModalIndexRouteImport } from './routes/modal/index'
|
||||
import { Route as MessageIndexRouteImport } from './routes/message/index'
|
||||
import { Route as LoadingIndexRouteImport } from './routes/loading/index'
|
||||
@@ -28,11 +27,6 @@ const TabIndexRoute = TabIndexRouteImport.update({
|
||||
path: '/tab/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const SwitchIndexRoute = SwitchIndexRouteImport.update({
|
||||
id: '/switch/',
|
||||
path: '/switch/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const ModalIndexRoute = ModalIndexRouteImport.update({
|
||||
id: '/modal/',
|
||||
path: '/modal/',
|
||||
@@ -66,7 +60,6 @@ export interface FileRoutesByFullPath {
|
||||
'/loading': typeof LoadingIndexRoute
|
||||
'/message': typeof MessageIndexRoute
|
||||
'/modal': typeof ModalIndexRoute
|
||||
'/switch': typeof SwitchIndexRoute
|
||||
'/tab': typeof TabIndexRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
@@ -76,7 +69,6 @@ export interface FileRoutesByTo {
|
||||
'/loading': typeof LoadingIndexRoute
|
||||
'/message': typeof MessageIndexRoute
|
||||
'/modal': typeof ModalIndexRoute
|
||||
'/switch': typeof SwitchIndexRoute
|
||||
'/tab': typeof TabIndexRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
@@ -87,7 +79,6 @@ export interface FileRoutesById {
|
||||
'/loading/': typeof LoadingIndexRoute
|
||||
'/message/': typeof MessageIndexRoute
|
||||
'/modal/': typeof ModalIndexRoute
|
||||
'/switch/': typeof SwitchIndexRoute
|
||||
'/tab/': typeof TabIndexRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
@@ -99,18 +90,9 @@ export interface FileRouteTypes {
|
||||
| '/loading'
|
||||
| '/message'
|
||||
| '/modal'
|
||||
| '/switch'
|
||||
| '/tab'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to:
|
||||
| '/'
|
||||
| '/buttons'
|
||||
| '/input'
|
||||
| '/loading'
|
||||
| '/message'
|
||||
| '/modal'
|
||||
| '/switch'
|
||||
| '/tab'
|
||||
to: '/' | '/buttons' | '/input' | '/loading' | '/message' | '/modal' | '/tab'
|
||||
id:
|
||||
| '__root__'
|
||||
| '/'
|
||||
@@ -119,7 +101,6 @@ export interface FileRouteTypes {
|
||||
| '/loading/'
|
||||
| '/message/'
|
||||
| '/modal/'
|
||||
| '/switch/'
|
||||
| '/tab/'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
@@ -130,7 +111,6 @@ export interface RootRouteChildren {
|
||||
LoadingIndexRoute: typeof LoadingIndexRoute
|
||||
MessageIndexRoute: typeof MessageIndexRoute
|
||||
ModalIndexRoute: typeof ModalIndexRoute
|
||||
SwitchIndexRoute: typeof SwitchIndexRoute
|
||||
TabIndexRoute: typeof TabIndexRoute
|
||||
}
|
||||
|
||||
@@ -150,13 +130,6 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof TabIndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/switch/': {
|
||||
id: '/switch/'
|
||||
path: '/switch'
|
||||
fullPath: '/switch'
|
||||
preLoaderRoute: typeof SwitchIndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/modal/': {
|
||||
id: '/modal/'
|
||||
path: '/modal'
|
||||
@@ -202,7 +175,6 @@ const rootRouteChildren: RootRouteChildren = {
|
||||
LoadingIndexRoute: LoadingIndexRoute,
|
||||
MessageIndexRoute: MessageIndexRoute,
|
||||
ModalIndexRoute: ModalIndexRoute,
|
||||
SwitchIndexRoute: SwitchIndexRoute,
|
||||
TabIndexRoute: TabIndexRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
|
||||
Reference in New Issue
Block a user