feat: updates

This commit is contained in:
qier222 2022-03-24 14:23:04 +08:00
parent 3b9d728410
commit 46349e8314
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
10 changed files with 117 additions and 39 deletions

View file

@ -1,6 +1,8 @@
import ArtistInline from '@/components/ArtistsInline'
import Skeleton from '@/components/Skeleton'
import { resizeImage } from '@/utils/common'
import { Fragment } from 'react'
import SvgIcon from './SvgIcon'
const Track = ({
track,
@ -52,11 +54,18 @@ const Track = ({
)}
<div className='text-xs text-gray-500 dark:text-gray-400'>
{!isSkeleton && (
<ArtistInline artists={track.ar} disableLink={true} />
)}
{isSkeleton && (
{isSkeleton ? (
<Skeleton className='w-2/3 translate-y-px'>PLACE</Skeleton>
) : (
<span className='flex items-center'>
{track.mark === 1318912 && (
<SvgIcon
name='explicit'
className='mr-1 h-3 w-3 text-gray-300 dark:text-gray-500'
/>
)}
<ArtistInline artists={track.ar} disableLink={true} />
</span>
)}
</div>
</div>