Files
spacedrive/interface/app/$libraryId/settings/library/index.tsx
Brendan Allan 1bd211115b Data Router (#609)
* data router time

* update pnpm.lock
2023-03-15 16:11:47 +00:00

21 lines
772 B
TypeScript

import { RouteObject } from 'react-router';
export default [
{
lazy: () => import('../OverviewLayout'),
children: [
{ path: 'contacts', lazy: () => import('./contacts') },
{ path: 'keys', lazy: () => import('./keys') },
{ path: 'security', lazy: () => import('./security') },
{ path: 'sharing', lazy: () => import('./sharing') },
{ path: 'sync', lazy: () => import('./sync') },
{ path: 'tags', lazy: () => import('./tags') },
{ path: 'general', lazy: () => import('./general') },
{ path: 'tags', lazy: () => import('./tags') },
{ path: 'nodes', lazy: () => import('./nodes') },
{ path: 'locations', lazy: () => import('./locations') }
]
},
{ path: 'locations/:id', lazy: () => import('./locations/$id') }
] satisfies RouteObject[];