Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
ozerodb committed Jan 3, 2024
1 parent 0b5ded9 commit 872dc38
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ a {

#profile-nav-dropdown .dropdown-menu .dropdown-divider {
border-top: 1px solid white;
}
}
8 changes: 5 additions & 3 deletions frontend/src/components/HKNavbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const HKNavbar = () => {
<div id="profile-nav-dropdown">
<NavDropdown
title={
<Image className="me-2 border"
<Image
className="me-2 border"
fluid
alt="Picture"
src={user.picture}
Expand All @@ -57,9 +58,10 @@ const HKNavbar = () => {
roundedCircle
/>
}

>
<NavDropdown.ItemText>{user.name ? user.name : user.email}</NavDropdown.ItemText>
<NavDropdown.ItemText>
{user.name ? user.name : user.email}
</NavDropdown.ItemText>
<NavDropdown.Divider />
<LogoutButton />
</NavDropdown>
Expand Down
6 changes: 5 additions & 1 deletion frontend/src/components/LogoutButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ const LogoutButton = () => {
});
};

return <Button variant="outline-light" onClick={handleLogout}>Log Out</Button>;
return (
<Button variant="outline-light" onClick={handleLogout}>
Log Out
</Button>
);
};

export default LogoutButton;

0 comments on commit 872dc38

Please sign in to comment.