Skip to content

Commit

Permalink
Merge branch 'issues/3924/support-for-profile-pic' into gsoc-doctor-n…
Browse files Browse the repository at this point in the history
…otes
  • Loading branch information
UdaySagar-Git committed Jun 11, 2024
2 parents 9852ae5 + 1bb7be9 commit 37a5947
Show file tree
Hide file tree
Showing 5 changed files with 519 additions and 3 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
Loading

0 comments on commit 37a5947

Please sign in to comment.