mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-30 23:49:51 -05:00
fix recently played
This commit is contained in:
@@ -3,13 +3,19 @@ import { ListTemplate } from "react-native-carplay";
|
||||
|
||||
export const CarPlayRecentlyPlayed = (recentTracks : BaseItemDto[]) => new ListTemplate({
|
||||
title: "Recently Played",
|
||||
items: recentTracks.map(track => {
|
||||
return {
|
||||
id: track.Id!,
|
||||
text: track.Name ? track.Name : "Untitled Track",
|
||||
// image: {
|
||||
// uri: `file://${getImageFilePath(track.Id!, 150, 150, ImageType.Primary)}`
|
||||
// }
|
||||
|
||||
sections: [
|
||||
{
|
||||
header: `Recently Played`,
|
||||
items: recentTracks.map(track => {
|
||||
return {
|
||||
id: track.Id!,
|
||||
text: track.Name ? track.Name : "Untitled Track",
|
||||
// image: {
|
||||
// uri: `file://${getImageFilePath(track.Id!, 150, 150, ImageType.Primary)}`
|
||||
// }
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user