mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-23 09:06:23 +01:00
Fix empty second column in nav menu when un-logged-in
This commit is contained in:
parent
465c06c671
commit
524a499df8
1 changed files with 8 additions and 1 deletions
|
@ -189,7 +189,7 @@ function NavMenu(props) {
|
|||
</MenuLink>
|
||||
</section>
|
||||
<section>
|
||||
{authenticated && (
|
||||
{authenticated ? (
|
||||
<>
|
||||
<MenuDivider />
|
||||
{currentAccount?.info?.id && (
|
||||
|
@ -220,6 +220,13 @@ function NavMenu(props) {
|
|||
<Icon icon="gear" size="l" /> <span>Settings…</span>
|
||||
</MenuItem>
|
||||
</>
|
||||
) : (
|
||||
<>
|
||||
<MenuDivider />
|
||||
<MenuLink to="/login">
|
||||
<Icon icon="user" size="l" /> <span>Log in</span>
|
||||
</MenuLink>
|
||||
</>
|
||||
)}
|
||||
</section>
|
||||
</ControlledMenu>
|
||||
|
|
Loading…
Reference in a new issue