mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
Add 404 route
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
/* eslint-disable sort-keys-fix/sort-keys-fix */
|
||||
import { Routes, Route, Link } from 'react-router-dom';
|
||||
import { ActionRequiredRoute } from '@/renderer/features/action-required';
|
||||
import { Routes, Route } from 'react-router-dom';
|
||||
import {
|
||||
ActionRequiredRoute,
|
||||
InvalidRoute,
|
||||
} from '@/renderer/features/action-required';
|
||||
import { AlbumListRoute } from '@/renderer/features/albums';
|
||||
import { LoginRoute } from '@/renderer/features/auth';
|
||||
import { DashboardRoute } from '@/renderer/features/dashboard';
|
||||
@@ -25,7 +28,7 @@ export const AppRouter = () => {
|
||||
<Route element={<NowPlayingRoute />} path={AppRoute.NOW_PLAYING} />
|
||||
<Route element={<AlbumListRoute />} path={AppRoute.LIBRARY_ALBUMS} />
|
||||
<Route element={<></>} path={AppRoute.LIBRARY_ARTISTS} />
|
||||
<Route element={<Link to={AppRoute.HOME}>Go home</Link>} path="*" />
|
||||
<Route element={<InvalidRoute />} path="*" />
|
||||
</Route>
|
||||
<Route element={<></>} path={AppRoute.PLAYING} />
|
||||
</Route>
|
||||
|
||||
Reference in New Issue
Block a user