mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-13 15:53:18 +02:00
add favorites list
This commit is contained in:
@@ -70,6 +70,8 @@ const GenreDetailRoute = lazy(
|
||||
|
||||
const SearchRoute = lazy(() => import('/@/renderer/features/search/routes/search-route'));
|
||||
|
||||
const FavoritesRoute = lazy(() => import('/@/renderer/features/favorites/routes/favorites-route'));
|
||||
|
||||
export const AppRouter = () => {
|
||||
const router = (
|
||||
<HashRouter>
|
||||
@@ -90,6 +92,7 @@ export const AppRouter = () => {
|
||||
<Route element={<HomeRoute />} index />
|
||||
<Route element={<HomeRoute />} path={AppRoute.HOME} />
|
||||
<Route element={<SearchRoute />} path={AppRoute.SEARCH} />
|
||||
<Route element={<FavoritesRoute />} path={AppRoute.FAVORITES} />
|
||||
<Route
|
||||
element={<NowPlayingRoute />}
|
||||
path={AppRoute.NOW_PLAYING}
|
||||
|
||||
@@ -2,6 +2,7 @@ export enum AppRoute {
|
||||
ACTION_REQUIRED = '/action-required',
|
||||
EXPLORE = '/explore',
|
||||
FAKE_LIBRARY_ALBUM_DETAILS = '/library/albums/dummy/:albumId',
|
||||
FAVORITES = '/favorites',
|
||||
HOME = '/',
|
||||
LIBRARY_ALBUM_ARTISTS = '/library/album-artists',
|
||||
LIBRARY_ALBUM_ARTISTS_DETAIL = '/library/album-artists/:albumArtistId',
|
||||
|
||||
Reference in New Issue
Block a user