1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2025-01-04 16:47:40 +01:00

Server's migrated sucessfully removing downtime page

This commit is contained in:
Cooper Ransom 2024-03-03 00:47:37 -05:00
parent eb331e4323
commit 55c8d5094b

View file

@ -104,7 +104,8 @@ function App() {
useHistoryListener(); useHistoryListener();
useOnlineListener(); useOnlineListener();
const { t } = useTranslation(); const { t } = useTranslation();
const [showDowntime, setShowDowntime] = useState(false); const maintenance = false;
const [showDowntime, setShowDowntime] = useState(maintenance);
const handleButtonClick = () => { const handleButtonClick = () => {
setShowDowntime(false); setShowDowntime(false);
@ -116,7 +117,7 @@ function App() {
setShowDowntime(true); setShowDowntime(true);
sessionStorage.setItem("downtimeToken", "true"); sessionStorage.setItem("downtimeToken", "true");
} }
}, []); }, [setShowDowntime]);
return ( return (
<Layout> <Layout>