mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
feat: updates
This commit is contained in:
parent
f340a90117
commit
cec4c5909d
50 changed files with 1304 additions and 207 deletions
20
packages/web/pages/New/Artist/FansAlsoLike.tsx
Normal file
20
packages/web/pages/New/Artist/FansAlsoLike.tsx
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import ArtistRow from '@/web/components/New/ArtistRow'
|
||||
import useSimilarArtists from '@/web/api/hooks/useSimilarArtists'
|
||||
import { useParams } from 'react-router-dom'
|
||||
|
||||
const FansAlsoLike = () => {
|
||||
const params = useParams()
|
||||
const { data: artists } = useSimilarArtists({ id: Number(params.id) || 0 })
|
||||
|
||||
return (
|
||||
<div>
|
||||
<div className='mb-6 mt-10 text-12 font-medium uppercase text-neutral-300'>
|
||||
Fans Also Like
|
||||
</div>
|
||||
|
||||
<ArtistRow artists={artists?.artists?.slice(0, 5)} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default FansAlsoLike
|
||||
Loading…
Add table
Add a link
Reference in a new issue