mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 13:17:46 +00:00
feat: updates
This commit is contained in:
parent
d09c5fd171
commit
133881d287
28 changed files with 389 additions and 115 deletions
|
|
@ -66,12 +66,12 @@ const My = () => {
|
|||
<PageTransition>
|
||||
<div className='grid grid-cols-1 gap-10'>
|
||||
<PlayLikedSongsCard />
|
||||
<div>
|
||||
<ArtistRow
|
||||
artists={recentListenedArtists?.map(a => a.artist)}
|
||||
title='RECENTLY LISTENED'
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ArtistRow
|
||||
artists={recentListenedArtists?.map(a => a.artist)}
|
||||
placeholderRow={1}
|
||||
title='RECENTLY LISTENED'
|
||||
/>
|
||||
|
||||
<div>
|
||||
<Tabs
|
||||
|
|
@ -79,7 +79,13 @@ const My = () => {
|
|||
value={selectedTab}
|
||||
onChange={(id: string) => setSelectedTab(id)}
|
||||
/>
|
||||
<CoverRow playlists={playlists?.playlist} className='mt-6' />
|
||||
<CoverRow
|
||||
playlists={
|
||||
selectedTab === 'playlists' ? playlists?.playlist : undefined
|
||||
}
|
||||
albums={selectedTab === 'albums' ? albums?.data : undefined}
|
||||
className='mt-6'
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</PageTransition>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue