mirror of
https://github.com/Jellify-Music/App.git
synced 2026-03-18 11:10:59 -05:00
fixing things and getting ready to build out others
This commit is contained in:
@@ -26,14 +26,16 @@ export default function Track({
|
||||
index,
|
||||
queueName,
|
||||
showArtwork,
|
||||
onPress
|
||||
onPress,
|
||||
onLongPress,
|
||||
} : {
|
||||
track: BaseItemDto,
|
||||
tracklist: BaseItemDto[],
|
||||
index?: number | undefined,
|
||||
queueName?: string | undefined,
|
||||
showArtwork?: boolean | undefined,
|
||||
onPress?: () => void | undefined
|
||||
onPress?: () => void | undefined,
|
||||
onLongPress?: () => void | undefined,
|
||||
}) : React.JSX.Element {
|
||||
|
||||
const { width } = useSafeAreaFrame();
|
||||
@@ -48,6 +50,13 @@ export default function Track({
|
||||
<XStack
|
||||
alignContent="center"
|
||||
flex={1}
|
||||
onLongPress={() => {
|
||||
if (onLongPress) {
|
||||
onLongPress();
|
||||
} else {
|
||||
|
||||
}
|
||||
}}
|
||||
onPress={() => {
|
||||
if (onPress) {
|
||||
onPress();
|
||||
|
||||
@@ -100,17 +100,19 @@ export default function PlayerScreen({ navigation }: { navigation: NativeStackNa
|
||||
bold
|
||||
fontSize={"$6"}
|
||||
>
|
||||
{nowPlaying?.title ?? "Untitled Track"}
|
||||
{nowPlaying!.title ?? "Untitled Track"}
|
||||
</Text>
|
||||
|
||||
<Text
|
||||
fontSize={"$6"}
|
||||
color={Colors.Primary}
|
||||
onPress={() => {
|
||||
navigation.goBack(); // Dismiss player modal
|
||||
navigation.push("Artist", {
|
||||
artist: nowPlaying!.item.ArtistItems![0],
|
||||
});
|
||||
if (nowPlaying!.item.ArtistItems) {
|
||||
navigation.goBack(); // Dismiss player modal
|
||||
navigation.push("Artist", {
|
||||
artist: nowPlaying!.item.ArtistItems![0],
|
||||
});
|
||||
}
|
||||
}}
|
||||
>
|
||||
{nowPlaying.artist ?? "Unknown Artist"}
|
||||
|
||||
Reference in New Issue
Block a user