impl shuffle, controls are temp

This commit is contained in:
austinried
2021-07-20 13:02:42 +09:00
parent df783a074b
commit f859be51a5
5 changed files with 89 additions and 41 deletions
+3 -3
View File
@@ -48,13 +48,13 @@ const ArtistDetails: React.FC<{ id: string }> = ({ id }) => {
const TopSongs = () => (
<>
<Text style={styles.header}>Top Songs</Text>
{artist.topSongs.map(s => (
{artist.topSongs.map((s, i) => (
<SongItem
key={s.id}
key={i}
song={s}
showArt={true}
subtitle="album"
onPress={() => setQueue(artist.topSongs, `Top Songs: ${artist.name}`, s.id)}
onPress={() => setQueue(artist.topSongs, `Top Songs: ${artist.name}`, i)}
/>
))}
</>