Skip to content

Commit

Permalink
add profile image in the side bar
Browse files Browse the repository at this point in the history
  • Loading branch information
UdaySagar-Git committed Jun 11, 2024
1 parent 8eb0dd2 commit 1bb7be9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Components/Common/Sidebar/SidebarUserCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,14 @@ const SidebarUserCard = ({ shrinked }: { shrinked: boolean }) => {
shrinked ? "mx-auto flex-col" : "mx-5"
} transition-all duration-200 ease-in-out`}
>
<Link href="/user/profile" className="flex-none py-3">
<CareIcon icon="l-user-circle" className="text-3xl text-white" />
<Link href="/user/profile">
<img
src={user.read_profile_picture_url || "/images/empty_avatar.jpg"}
alt="profile"
className={`h-10 w-10 rounded-full object-cover ${
shrinked ? "mb-3" : "mb-2 mt-1"
}`}
/>
</Link>
<div className="flex cursor-pointer justify-center" onClick={signOut}>
<CareIcon
Expand Down

0 comments on commit 1bb7be9

Please sign in to comment.