mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-17 14:10:14 +02:00
reimplement genre detail route
This commit is contained in:
@@ -63,6 +63,10 @@ const DummyAlbumDetailRoute = lazy(
|
||||
|
||||
const GenreListRoute = lazy(() => import('/@/renderer/features/genres/routes/genre-list-route'));
|
||||
|
||||
const GenreDetailRoute = lazy(
|
||||
() => import('/@/renderer/features/genres/routes/genre-detail-route'),
|
||||
);
|
||||
|
||||
const SearchRoute = lazy(() => import('/@/renderer/features/search/routes/search-route'));
|
||||
|
||||
export const AppRouter = () => {
|
||||
@@ -91,12 +95,8 @@ export const AppRouter = () => {
|
||||
<Route path={AppRoute.LIBRARY_GENRES}>
|
||||
<Route element={<GenreListRoute />} index />
|
||||
<Route
|
||||
element={<AlbumListRoute />}
|
||||
path={AppRoute.LIBRARY_GENRES_ALBUMS}
|
||||
/>
|
||||
<Route
|
||||
element={<SongListRoute />}
|
||||
path={AppRoute.LIBRARY_GENRES_SONGS}
|
||||
element={<GenreDetailRoute />}
|
||||
path={AppRoute.LIBRARY_GENRES_DETAIL}
|
||||
/>
|
||||
</Route>
|
||||
<Route
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
export enum AppRoute {
|
||||
ACTION_REQUIRED = '/action-required',
|
||||
EXPLORE = '/explore',
|
||||
LOGIN = '/login',
|
||||
FAKE_LIBRARY_ALBUM_DETAILS = '/library/albums/dummy/:albumId',
|
||||
HOME = '/',
|
||||
LIBRARY_ALBUM_ARTISTS = '/library/album-artists',
|
||||
@@ -18,9 +17,9 @@ export enum AppRoute {
|
||||
LIBRARY_ARTISTS_DETAIL_TOP_SONGS = '/library/artists/:artistId/top-songs',
|
||||
LIBRARY_FOLDERS = '/library/folders',
|
||||
LIBRARY_GENRES = '/library/genres',
|
||||
LIBRARY_GENRES_ALBUMS = '/library/genres/:genreId/albums',
|
||||
LIBRARY_GENRES_SONGS = '/library/genres/:genreId/songs',
|
||||
LIBRARY_GENRES_DETAIL = '/library/genres/:genreId',
|
||||
LIBRARY_SONGS = '/library/songs',
|
||||
LOGIN = '/login',
|
||||
NOW_PLAYING = '/now-playing',
|
||||
PLAYING = '/playing',
|
||||
PLAYLISTS = '/playlists',
|
||||
|
||||
Reference in New Issue
Block a user