Fix empty second column in nav menu when un-logged-in

This commit is contained in:
Lim Chee Aun 2023-06-20 13:30:26 +08:00
parent 465c06c671
commit 524a499df8

View file

@ -189,7 +189,7 @@ function NavMenu(props) {
</MenuLink> </MenuLink>
</section> </section>
<section> <section>
{authenticated && ( {authenticated ? (
<> <>
<MenuDivider /> <MenuDivider />
{currentAccount?.info?.id && ( {currentAccount?.info?.id && (
@ -220,6 +220,13 @@ function NavMenu(props) {
<Icon icon="gear" size="l" /> <span>Settings&hellip;</span> <Icon icon="gear" size="l" /> <span>Settings&hellip;</span>
</MenuItem> </MenuItem>
</> </>
) : (
<>
<MenuDivider />
<MenuLink to="/login">
<Icon icon="user" size="l" /> <span>Log in</span>
</MenuLink>
</>
)} )}
</section> </section>
</ControlledMenu> </ControlledMenu>