From e07bf98e62a88267dea15f389bddfa3909291cb9 Mon Sep 17 00:00:00 2001 From: Davide Passoni Date: Fri, 28 Jun 2024 11:09:29 +0200 Subject: [PATCH] Re-enabled login page --- frontend/react/src/ui/ui.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/react/src/ui/ui.tsx b/frontend/react/src/ui/ui.tsx index 8ae0dbe5..9af099ed 100644 --- a/frontend/react/src/ui/ui.tsx +++ b/frontend/react/src/ui/ui.tsx @@ -30,7 +30,7 @@ export type OlympusState = { } export function UI() { - var [loginModalVisible, setLoginModalVisible] = useState(false /* Temporary during devel */); + var [loginModalVisible, setLoginModalVisible] = useState(true); var [mainMenuVisible, setMainMenuVisible] = useState(false); var [spawnMenuVisible, setSpawnMenuVisible] = useState(false); var [unitControlMenuVisible, setUnitControlMenuVisible] = useState(false); @@ -109,12 +109,12 @@ export function UI() { } /* Temporary during devel */ - useEffect(() => { - window.setTimeout(() => { - checkPassword("admin"); - connect("devel"); - }, 1000) - }, []) + //useEffect(() => { + // window.setTimeout(() => { + // checkPassword("admin"); + // connect("devel"); + // }, 1000) + //}, []) return (