Fix button flash

This commit is contained in:
MartinBraquet
2026-03-21 21:18:35 +01:00
parent 2c04b2a6aa
commit b270ce706b
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ export function LoggedOutHome() {
return (
<>
{!user && (
{user === null && (
<Col className="mb-4 gap-2 lg:hidden">
<SignUpButton
className="mt-4 flex-1 fixed bottom-[calc(55px+env(safe-area-inset-bottom))] w-full left-0 right-0 z-10 mx-auto px-4"

View File

@@ -67,7 +67,7 @@ export default function Sidebar(props: {
/>
)}
{!user && <SignUpButton className="mt-4" text={t('nav.sign_up', 'Sign up')} />}
{user === null && <SignUpButton className="mt-4" text={t('nav.sign_up', 'Sign up')} />}
{user && profile === null && (
<Button className="mt-2" onClick={() => router.push('signup')}>
@@ -76,7 +76,7 @@ export default function Sidebar(props: {
)}
</div>
<div className="mb-[12px] mt-auto flex flex-col gap-1">
{!user && <LanguagePicker className={'w-fit mx-3 pr-12 mb-2'} />}
{user === null && <LanguagePicker className={'w-fit mx-3 pr-12 mb-2'} />}
{bottomNavOptions.map((item) => (
<SidebarItem key={item.key} item={item} currentPage={currentPage} />
))}