mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-03-25 01:51:37 -04:00
Fix button flash
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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} />
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user