mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-20 09:50:26 -06:00
carplay fioxes
This commit is contained in:
@@ -5,13 +5,17 @@ import { GridTemplate, ListTemplate } from "react-native-carplay"
|
||||
|
||||
export const CarPlayRecentArtists = (artists : BaseItemDto[]) => new ListTemplate({
|
||||
title: "Recently Played",
|
||||
items: artists.map(artist => {
|
||||
return {
|
||||
id: artist.Id!,
|
||||
text: artist.Name ? artist.Name : "Untitled Track",
|
||||
image: {
|
||||
uri: getImageApi(Client.api!).getItemImageUrlById(artist.Id!)
|
||||
}
|
||||
sections: [
|
||||
{
|
||||
items: artists.map(artist => {
|
||||
return {
|
||||
id: artist.Id!,
|
||||
text: artist.Name ? artist.Name : "Untitled Track",
|
||||
image: {
|
||||
uri: getImageApi(Client.api!).getItemImageUrlById(artist.Id!)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
]
|
||||
})
|
||||
@@ -3,10 +3,8 @@ import { ListTemplate } from "react-native-carplay";
|
||||
|
||||
export const CarPlayRecentlyPlayed = (recentTracks : BaseItemDto[]) => new ListTemplate({
|
||||
title: "Recently Played",
|
||||
|
||||
sections: [
|
||||
{
|
||||
header: `Recently Played`,
|
||||
items: recentTracks.map(track => {
|
||||
return {
|
||||
id: track.Id!,
|
||||
|
||||
Reference in New Issue
Block a user