mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07: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();
|
||||
useOnlineListener();
|
||||
const { t } = useTranslation();
|
||||
const [showDowntime, setShowDowntime] = useState(false);
|
||||
const maintenance = false;
|
||||
const [showDowntime, setShowDowntime] = useState(maintenance);
|
||||
|
||||
const handleButtonClick = () => {
|
||||
setShowDowntime(false);
|
||||
|
@ -116,7 +117,7 @@ function App() {
|
|||
setShowDowntime(true);
|
||||
sessionStorage.setItem("downtimeToken", "true");
|
||||
}
|
||||
}, []);
|
||||
}, [setShowDowntime]);
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
|
|
Loading…
Reference in a new issue