mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-24 03:49:11 -05:00
Add to discover stack, fix album names not showing in stack
This commit is contained in:
@@ -4,6 +4,7 @@ import Index from "./component";
|
||||
import DetailsScreen from "../ItemDetail/screen";
|
||||
import Player from "../Player/stack";
|
||||
import Albums from "../Albums/component";
|
||||
import { AlbumScreen } from "../Album";
|
||||
|
||||
export const DiscoverStack = createNativeStackNavigator<StackParamList>();
|
||||
|
||||
@@ -26,6 +27,15 @@ export function Discover(): React.JSX.Element {
|
||||
}}
|
||||
/>
|
||||
|
||||
<DiscoverStack.Screen
|
||||
name="Album"
|
||||
component={AlbumScreen}
|
||||
options={({ route }) => ({
|
||||
title: route.params.album.Name ?? "Untitled Album",
|
||||
headerTitle: ""
|
||||
})}
|
||||
/>
|
||||
|
||||
<DiscoverStack.Screen
|
||||
name="Albums"
|
||||
component={Albums}
|
||||
|
||||
@@ -59,7 +59,7 @@ export default function Home(): React.JSX.Element {
|
||||
name="Album"
|
||||
component={AlbumScreen}
|
||||
options={({ route }) => ({
|
||||
headerShown: true,
|
||||
title: route.params.album.Name ?? "Untitled Album",
|
||||
headerTitle: ""
|
||||
})}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user