Skip to content

Commit

Permalink
ui: make entire logout icon clickable
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
Pete Vilter committed Oct 5, 2018
1 parent 67ac38f commit 3f785ad
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions pkg/ui/src/views/app/components/layoutSidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ function LoginIndicator({ loginState, handleLogout }: LoginIndicatorProps) {

return (
<li className="login-indicator">
<div
className="login-indicator__initial"
title={`Signed in as ${user}`}
>
{ user[0] }
<Link to={LOGOUT_PAGE} onClick={handleLogout}>
<div>
<div
className="login-indicator__initial"
title={`Signed in as ${user}`}
>
{user[0]}
</div>
Log Out
</div>
<Link to={LOGOUT_PAGE} onClick={handleLogout}>Log Out</Link>
</Link>
</li>
);
}
Expand Down

0 comments on commit 3f785ad

Please sign in to comment.