Skip to content

Commit

Permalink
user name is no longer clickable.
Browse files Browse the repository at this point in the history
  • Loading branch information
PVautour committed Jul 20, 2023
1 parent 4e337fc commit 3041e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/signin/headerwidget/headerwidget.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ background-color: blue;
border-radius: 0.25rem;
color: white;
padding: 0.55em 1em;
}
}

.no-click {pointer-events: none;}
2 changes: 1 addition & 1 deletion src/components/signin/headerwidget/headerwidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function HeaderWidget(): JSX.Element {
} else {
loginButton = <div id="loginWidget" className="dropdown"><button className="userIcon" onClick={() => {set_showMenu(!showMenu)}} style={{
"padding": '0.55em 1em',
}}>{loggedInMessage.charAt(0)}</button>{showMenu ? <ul><li><button>{loggedInMessage}</button></li><li><button onClick={logout}>{t('nav.logout')}</button></li></ul> : ""}</div>
}}>{loggedInMessage.charAt(0)}</button>{showMenu ? <ul><li><button className="no-click">{loggedInMessage}</button></li><li><button onClick={logout}>{t('nav.logout')}</button></li></ul> : ""}</div>
}

useEffect(() => {
Expand Down

0 comments on commit 3041e65

Please sign in to comment.