Skip to content

Commit

Permalink
fix: link user avatar to profile page
Browse files Browse the repository at this point in the history
  • Loading branch information
OgDev-01 committed Oct 23, 2023
1 parent f0777ee commit 1e224b1
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions components/atoms/UserCard/user-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@ const UserCard = ({ username, name, meta, loading }: UserCardProps) => {
) : (
<div className="flex flex-col items-center gap-6 px-9">
<div className="flex flex-col items-center gap-2 -mt-10">
<Image
className="border border-white rounded-full "
width={100}
height={100}
src={avatarUrl}
alt={`${username}'s avatar image`}
/>
<Link href={`/user/${username}`}>
<Image
className="border border-white rounded-full "
width={100}
height={100}
src={avatarUrl}
alt={`${username}'s avatar image`}
/>
</Link>
<div className="text-center">
<h3 className="text-lg ">{name}</h3>
<Link className="text-lg text-slate-700" href={`/user/${username}`}>{`@${username}`}</Link>
Expand Down

0 comments on commit 1e224b1

Please sign in to comment.