Skip to content

Commit

Permalink
Fix mobile hamburger menu orientation when signed in
Browse files Browse the repository at this point in the history
  • Loading branch information
julianweng authored and rm03 committed Oct 15, 2024
1 parent 23c8e5f commit 380eac7
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions frontend/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,24 @@ const Header = ({ authenticated, userInfo }: HeaderProps): ReactElement => {
<Title>{SITE_NAME}</Title>
</LogoItem>
</Link>
{authenticated === false && (
<MobileLoginButton
className="button"
href={`${LOGIN_URL}?next=${router.asPath}`}
onClick={() => logEvent('login', 'click')}
>
Login
</MobileLoginButton>
)}
<Burger toggle={toggle} />
<div
style={{
flex: 1,
display: 'flex',
justifyContent: 'flex-end',
}}
>
{authenticated === false && (
<MobileLoginButton
className="button"
href={`${LOGIN_URL}?next=${router.asPath}`}
onClick={() => logEvent('login', 'click')}
>
Login
</MobileLoginButton>
)}
<Burger toggle={toggle} />
</div>
</div>
<Links userInfo={userInfo} authenticated={authenticated} show={show} />
</Nav>
Expand Down

0 comments on commit 380eac7

Please sign in to comment.