Merge pull request #470 from omnivore-app/fix/rm-signup-button

Remove the Sign Up button from the header for logged out users
This commit is contained in:
Jackson Harper
2022-04-22 13:36:04 -07:00
committed by GitHub

View File

@ -206,7 +206,7 @@ function NavHeader(props: NavHeaderProps): JSX.Element {
</HStack>
)}
{props.username ? (
{props.username && (
<HStack
alignment="center"
css={{ display: 'flex', alignItems: 'center' }}
@ -222,10 +222,6 @@ function NavHeader(props: NavHeaderProps): JSX.Element {
actionHandler={props.actionHandler}
/>
</HStack>
) : (
<Link passHref href="/login">
<Button style="ctaDarkYellow">Sign Up</Button>
</Link>
)}
</HStack>
</nav>