Add 404 route

This commit is contained in:
jeffvli
2022-10-30 15:00:54 -07:00
parent a60a053b6b
commit b2fc76203d
4 changed files with 33 additions and 5 deletions
+6 -3
View File
@@ -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>