Skip to content

Commit

Permalink
hide "My servers" if not signed in
Browse files Browse the repository at this point in the history
  • Loading branch information
fizzy-drinks authored Nov 22, 2022
1 parent f6fec84 commit 1a88bcf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ const Header: FC<{ guildData?: GuildData; isSignedIn?: boolean }> = ({
<Link href="/">
<NavbarTitle>Wikicord</NavbarTitle>
</Link>
<Link href="/guilds">My servers</Link>
{isSignedIn ? (
<Link href="/bye">Sign out</Link>
<>
<Link href="/guilds">My servers</Link>
<Link href="/bye">Sign out</Link>
</>
) : (
<Link href="/login">Sign in</Link>
)}
Expand Down

1 comment on commit 1a88bcf

@vercel
Copy link

@vercel vercel bot commented on 1a88bcf Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.