From 926939bb45fe659e6692eecb9c1e99f03cd45149 Mon Sep 17 00:00:00 2001 From: broody Date: Fri, 15 Sep 2023 09:50:23 -0700 Subject: [PATCH] chore: conditional wip --- web/src/pages/index.tsx | 97 +++++++++++++++++++++++------------------ 1 file changed, 55 insertions(+), 42 deletions(-) diff --git a/web/src/pages/index.tsx b/web/src/pages/index.tsx index 9214f4698..6fc98d75c 100644 --- a/web/src/pages/index.tsx +++ b/web/src/pages/index.tsx @@ -50,58 +50,71 @@ export default function Home() { const { toast } = useToast(); const [isSubmitting, setIsSubmitting] = useState(false); + const showUnderConstruction = + window.location.host === "rollyourown.preview.cartridge.gg"; + console.log(window.location.host); return ( - - - - Under Construction - - - Get ready hustlers... Season II starts in September - - - - {/* */} + router.push(`/${gameId}/${getLocationById(locationId).slug}`); + }} + > + Hustle + + )} - {/* HALL OF FAME - - - */} + {!showUnderConstruction && ( + <> + HALL OF FAME + + + + + )} );