Skip to content

Commit

Permalink
perf: add spotify album art image alt
Browse files Browse the repository at this point in the history
  • Loading branch information
sozonome committed Jul 4, 2023
1 parent 15e3345 commit 0fe63dc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/components/common/SpotifyListening.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ const SpotifyListening = () => {
>
<Icon as={FaSpotify} color="green.400" fontSize="2xl" />
{data?.albumArtUrl && (
<Image src={data.albumArtUrl} width={16} borderRadius={8} />
<Image
src={data.albumArtUrl}
width={16}
borderRadius={8}
alt={data.trackTitle}
/>
)}
<Box>
<Text fontWeight="extrabold" fontSize="sm">
Expand Down

1 comment on commit 0fe63dc

@vercel
Copy link

@vercel vercel bot commented on 0fe63dc Jul 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.