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:
parent
eb331e4323
commit
55c8d5094b
1 changed files with 3 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue