diff --git a/components/Artist/component.tsx b/components/Artist/component.tsx index 33b21cae..6eb017ca 100644 --- a/components/Artist/component.tsx +++ b/components/Artist/component.tsx @@ -18,11 +18,11 @@ export default function Artist({ artistId, artistName }: { artistId: string, art { return ( - - { album.Name ?? "Untitled Album" } + + { album.ProductionYear?.toLocaleString() ?? "" } ) }} diff --git a/components/Global/avatar.tsx b/components/Global/avatar.tsx index 652ddc2a..3954479b 100644 --- a/components/Global/avatar.tsx +++ b/components/Global/avatar.tsx @@ -1,4 +1,4 @@ -import { Avatar as TamaguiAvatar, View } from "tamagui" +import { H6, Avatar as TamaguiAvatar, View, YStack } from "tamagui" import { Label, Text } from "./text" import { useApiClientContext } from "../jellyfin-api-provider" import { Colors } from "../../enums/colors"; @@ -7,7 +7,7 @@ interface AvatarProps { circular?: boolean | undefined; itemId: string; children?: string | undefined; - subheading?: string | undefined; + subheading?: string | null | undefined; onPress?: () => void | undefined; } @@ -16,7 +16,7 @@ export default function Avatar(props: AvatarProps): React.JSX.Element { const { server } = useApiClientContext(); return ( - + { props.children && ( - {props.children} + {props.children} )} - + { props.subheading && ( +
{ props.subheading }
+ )} + ) } \ No newline at end of file diff --git a/components/Home/helpers/recent-artists.tsx b/components/Home/helpers/recent-artists.tsx index 64c9a5b2..0f8e7fcb 100644 --- a/components/Home/helpers/recent-artists.tsx +++ b/components/Home/helpers/recent-artists.tsx @@ -26,7 +26,6 @@ export default function RecentArtists({ navigation }: ProvidedHomeProps): React. return ( { @@ -22,18 +20,9 @@ export default function RecentlyPlayed(): React.JSX.Element { { recentTracks && recentTracks.map((recentlyPlayedTrack) => { return ( - - - - + + {`${recentlyPlayedTrack.Name}`} - {`${recentlyPlayedTrack.Name}`} - {`${recentlyPlayedTrack.Artists?.join(", ")}`} - ) })}