Skip to content

Commit c44287a

Browse files
committed
feat: add link to user profile in song page user badge
1 parent eba38e4 commit c44287a

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

web/src/modules/song/components/SongPageButtons.tsx

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,22 @@ import { downloadSongFile, openSongInNBS } from '../util/downloadSong';
3030
const UploaderBadge = ({ user }: { user: SongViewDtoType['uploader'] }) => {
3131
return (
3232
<div className='flex flex-row items-center gap-3'>
33-
<Image
34-
width={32}
35-
height={32}
36-
src={user.profileImage}
37-
alt=''
38-
className='rounded-full'
39-
/>
40-
<div className='flex flex-col leading-tight h-full'>
33+
<Link href={`/user/${user.username}`}>
34+
<Image
35+
width={32}
36+
height={32}
37+
src={user.profileImage}
38+
alt=''
39+
className='rounded-full'
40+
/>
41+
</Link>
42+
<Link
43+
className='flex flex-col leading-tight h-full hover:underline'
44+
href={`/user/${user.username}`}
45+
>
4146
<p className='font-bold text-white'>{user.username}</p>
4247
{/* <p className='text-sm text-zinc-400'>410 followers</p> */}
43-
</div>
48+
</Link>
4449
</div>
4550
);
4651
};

0 commit comments

Comments
 (0)