mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Remove the Sign Up button from the header for logged out users
This reduces flicker on refresh
This commit is contained in:
parent
006b15f09f
commit
36ed2e9a9f
1 changed files with 1 additions and 5 deletions
|
|
@ -200,7 +200,7 @@ function NavHeader(props: NavHeaderProps): JSX.Element {
|
|||
</HStack>
|
||||
)}
|
||||
|
||||
{props.username ? (
|
||||
{props.username && (
|
||||
<HStack
|
||||
alignment="center"
|
||||
css={{ display: 'flex', alignItems: 'center' }}
|
||||
|
|
@ -216,10 +216,6 @@ function NavHeader(props: NavHeaderProps): JSX.Element {
|
|||
actionHandler={props.actionHandler}
|
||||
/>
|
||||
</HStack>
|
||||
) : (
|
||||
<Link passHref href="/login">
|
||||
<Button style="ctaDarkYellow">Sign Up</Button>
|
||||
</Link>
|
||||
)}
|
||||
</HStack>
|
||||
</nav>
|
||||
|
|
|
|||
Loading…
Reference in a new issue