From ddc0ffc848fa2308b62850b45e0be3cc2a7fd800 Mon Sep 17 00:00:00 2001 From: Frikky Date: Tue, 21 May 2024 17:16:08 +0000 Subject: [PATCH] Minor app.jsx fix --- frontend/src/App.jsx | 73 +++++++++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 31 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 0fbfe2e0..cf67f686 100755 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -56,10 +56,9 @@ if (window.location.port === "3000") { // Development on Github Codespaces if (globalUrl.includes("app.github.dev")) { - globalUrl = globalUrl.replace("-3001", "-5001") - //globalUrl = "https://frikky-shuffle-5gvr4xx62w64-5001.preview.app.github.dev" + globalUrl = globalUrl.replace("-3000.", "-5001.") + globalUrl = globalUrl.replace("-3001.", "-5001.") } -//console.log("global: ", globalUrl) const App = (message, props) => { @@ -69,6 +68,7 @@ const App = (message, props) => { const [isLoggedIn, setIsLoggedIn] = useState(false) const [dataset, setDataset] = useState(false) const [isLoaded, setIsLoaded] = useState(false) + const [modalOpen, setModalOpen] = useState(false) const [curpath, setCurpath] = useState(typeof window === "undefined" || window.location === undefined ? "" : window.location.pathname) @@ -177,34 +177,45 @@ const App = (message, props) => { curpath={curpath} setCurpath={setCurpath} /> - {!isLoaded ? null : - userdata.chat_disabled === true ? null : - - } -
+ {!isLoaded ? null : + userdata.chat_disabled === true ? null : + + } + +
+
+
+ {/*
*/}