mirror of
https://github.com/AmanTahiliani/box-box.git
synced 2026-08-08 12:07:23 -04:00
Rework command center for race weekends
This commit is contained in:
@@ -37,6 +37,13 @@ export const raceHubRoute = createRoute({
|
||||
},
|
||||
})
|
||||
|
||||
export const adminRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: '/admin',
|
||||
component: DataLibraryPage,
|
||||
})
|
||||
|
||||
// Legacy alias — kept so any saved /data-library links keep working.
|
||||
export const dataLibraryRoute = createRoute({
|
||||
getParentRoute: () => rootRoute,
|
||||
path: '/data-library',
|
||||
@@ -49,7 +56,13 @@ export const liveTimingRoute = createRoute({
|
||||
component: LiveTimingPage,
|
||||
})
|
||||
|
||||
const routeTree = rootRoute.addChildren([commandCenterRoute, raceHubRoute, dataLibraryRoute, liveTimingRoute])
|
||||
const routeTree = rootRoute.addChildren([
|
||||
commandCenterRoute,
|
||||
raceHubRoute,
|
||||
adminRoute,
|
||||
dataLibraryRoute,
|
||||
liveTimingRoute,
|
||||
])
|
||||
|
||||
export const router = createRouter({ routeTree })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user