mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 14:18:03 +00:00
feat: updates
This commit is contained in:
parent
ce757215a3
commit
c1cd31840e
86 changed files with 1048 additions and 778 deletions
|
|
@ -3,6 +3,7 @@ import PageTransition from '@/web/components/PageTransition'
|
|||
import RecentlyListened from './RecentlyListened'
|
||||
import Collections from './Collections'
|
||||
import { useIsLoggedIn } from '@/web/api/hooks/useUser'
|
||||
import { LayoutGroup, motion } from 'framer-motion'
|
||||
|
||||
function PleaseLogin() {
|
||||
return <></>
|
||||
|
|
@ -13,11 +14,13 @@ const My = () => {
|
|||
return (
|
||||
<PageTransition>
|
||||
{isLoggedIn ? (
|
||||
<div className='grid grid-cols-1 gap-10'>
|
||||
<PlayLikedSongsCard />
|
||||
<RecentlyListened />
|
||||
<Collections />
|
||||
</div>
|
||||
<LayoutGroup>
|
||||
<div className='grid grid-cols-1 gap-10'>
|
||||
<PlayLikedSongsCard />
|
||||
<RecentlyListened />
|
||||
<Collections />
|
||||
</div>
|
||||
</LayoutGroup>
|
||||
) : (
|
||||
<PleaseLogin />
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue