From 8bf3c4fcd7566bf0d6ad9a5e0a53d04ab30f7163 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Wed, 29 Oct 2025 20:43:36 +0100 Subject: [PATCH] Remove sign up button if logged in --- web/components/home/home.tsx | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/web/components/home/home.tsx b/web/components/home/home.tsx index a4df39b3..cba0022c 100644 --- a/web/components/home/home.tsx +++ b/web/components/home/home.tsx @@ -1,6 +1,7 @@ import {useEffect} from "react"; import {Col} from "web/components/layout/col"; import {SignUpButton} from "web/components/nav/sidebar"; +import {useUser} from "web/hooks/use-user"; export function AboutBox(props: { title: string @@ -18,6 +19,8 @@ export function AboutBox(props: { } export function LoggedOutHome() { + const user = useUser() + useEffect(() => { const text = "Search."; const el = document.getElementById("typewriter"); @@ -46,14 +49,14 @@ export function LoggedOutHome() { return ( <> - - + {user === null && + {/**/} - + }

Don't Swipe.
@@ -68,13 +71,17 @@ export function LoggedOutHome() {
- - - + + +
-

- Compass is to human connection what Linux is to software, Wikipedia is to knowledge, and Firefox is to browsing — a public digital good designed to serve people, not profit. +

+ Compass is to human connection what Linux is to software, Wikipedia is to knowledge, and Firefox is to + browsing — a public digital good designed to serve people, not profit.