Skip to content

Commit

Permalink
add link to user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Aug 17, 2024
1 parent 0b3b79d commit 00ca61d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions webui/src/Components/Navbar/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,12 @@ const Navbar: FC<NavbarProps> = ({ user, onSignOut, showSignInButton }) => {
content={({ close }) => (
<PopoverMenu>
<UserDetails>
<Avatar src={user?.imageUrl || ""} alt="avatar" size={88} />
<Name>{user?.fullName}</Name>
<Link to={user?.username || '/'}>
<Avatar src={user?.imageUrl || ""} alt="avatar" size={88} />
</Link>
<Link to={user?.username || '/'}>
<Name>{user?.fullName}</Name>
</Link>

<div
style={{
Expand Down
1 change: 1 addition & 0 deletions webui/src/Components/Navbar/styles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ export const PopoverMenu = styled.div`
`;

export const Name = styled.div`
color: #fff !important;
font-size: 16px;
font-weight: 600;
margin-top: 8px;
Expand Down

0 comments on commit 00ca61d

Please sign in to comment.