mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-24 11:59:02 -05:00
idk maybe?
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { QueryKeys } from "../../enums/query-keys";
|
||||
|
||||
interface CategoryRoute {
|
||||
name: any; // ¯\_(ツ)_/¯
|
||||
iconName: string;
|
||||
params?: any | undefined;
|
||||
};
|
||||
|
||||
const Categories : CategoryRoute[] = [
|
||||
{ name: "Artists", iconName: "microphone-variant" },
|
||||
{ name: "Artists", iconName: "microphone-variant", params: { query: QueryKeys.FavoriteArtists } },
|
||||
{ name: "Albums", iconName: "music-box-multiple" },
|
||||
{ name: "Tracks", iconName: "music-note"},
|
||||
{ name: "Playlists", iconName: "playlist-music"},
|
||||
|
||||
@@ -29,7 +29,7 @@ export default function Library({
|
||||
caption={item.name}
|
||||
width={width / 2.1}
|
||||
onPress={() => {
|
||||
navigation.navigate(item.name)
|
||||
navigation.navigate(item.name, item.params)
|
||||
}}
|
||||
largeIcon
|
||||
/>
|
||||
|
||||
Vendored
+4
-1
@@ -1,3 +1,4 @@
|
||||
import { QueryKeys } from "../../enums/query-keys";
|
||||
import { BaseItemDto } from "@jellyfin/sdk/lib/generated-client/models";
|
||||
import { NativeStackScreenProps } from "@react-navigation/native-stack";
|
||||
|
||||
@@ -18,7 +19,9 @@ export type StackParamList = {
|
||||
Discover: undefined;
|
||||
|
||||
Library: undefined;
|
||||
Artists: undefined;
|
||||
Artists: {
|
||||
query: QueryKeys.FavoriteArtists | QueryKeys.RecentlyPlayedArtists
|
||||
};
|
||||
Albums: undefined;
|
||||
Tracks: undefined;
|
||||
Genres: undefined;
|
||||
|
||||
Reference in New Issue
Block a user