Skip to content

Commit

Permalink
Hide matches and servers tabs if not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
pixup1 committed Dec 15, 2024
1 parent f5499b9 commit aa7f7b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ const NavBar: Component = () => {
</div>
<div class="grow"></div>
<NavLink href="/create">{t('Create')}</NavLink>
<NavLink href="/matches">{t('Matches')}</NavLink>
<NavLink href="/gameservers">{t('Game Servers')}</NavLink>
<Switch>
<Match when={isLoggedIn() === undefined}>...</Match>
<Match when={isLoggedIn() === false}>
<NavLink href="/login">{t('Login')}</NavLink>
</Match>
<Match when={isLoggedIn() === true}>
<NavLink href="/matches">{t('Matches')}</NavLink>
<NavLink href="/gameservers">{t('Game Servers')}</NavLink>
<NavLink href="/logout">{t('Logout')}</NavLink>
</Match>
</Switch>
Expand Down

0 comments on commit aa7f7b2

Please sign in to comment.