mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 02:13:33 +00:00
Move settings to route instead of modal
This commit is contained in:
parent
0c13b09029
commit
bc5f1f13f0
11 changed files with 159 additions and 151 deletions
|
|
@ -58,6 +58,8 @@ const AlbumDetailRoute = lazy(
|
|||
() => import('/@/renderer/features/albums/routes/album-detail-route'),
|
||||
);
|
||||
|
||||
const SettingsRoute = lazy(() => import('/@/renderer/features/settings/routes/settings-route'));
|
||||
|
||||
const RouteErrorBoundary = lazy(
|
||||
() => import('/@/renderer/features/action-required/components/route-error-boundary'),
|
||||
);
|
||||
|
|
@ -84,6 +86,11 @@ export const AppRouter = () => {
|
|||
errorElement={<RouteErrorBoundary />}
|
||||
path={AppRoute.HOME}
|
||||
/>
|
||||
<Route
|
||||
element={<SettingsRoute />}
|
||||
errorElement={<RouteErrorBoundary />}
|
||||
path={AppRoute.SETTINGS}
|
||||
/>
|
||||
<Route
|
||||
element={<NowPlayingRoute />}
|
||||
errorElement={<RouteErrorBoundary />}
|
||||
|
|
|
|||
|
|
@ -20,4 +20,5 @@ export enum AppRoute {
|
|||
PLAYLISTS_DETAIL_SONGS = '/playlists/:playlistId/songs',
|
||||
SEARCH = '/search',
|
||||
SERVERS = '/servers',
|
||||
SETTINGS = '/settings',
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue