mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Fix stupid maintence page
This commit is contained in:
parent
fd00b65276
commit
eb331e4323
2 changed files with 10 additions and 11 deletions
|
@ -114,17 +114,17 @@
|
||||||
"stopEditing": "Stop editing"
|
"stopEditing": "Stop editing"
|
||||||
},
|
},
|
||||||
"search": {
|
"search": {
|
||||||
"allResults": "That's all we have!",
|
"allResults": "That's all we have...",
|
||||||
"failed": "Failed to find media, try again!",
|
"failed": "Failed to find media, try again!",
|
||||||
"loading": "Loading...",
|
"loading": "Loading...",
|
||||||
"noResults": "We couldn't find anything!",
|
"noResults": "We couldn't find anything :(",
|
||||||
"placeholder": {
|
"placeholder": {
|
||||||
"default": "What do you want to watch?",
|
"default": "What do you want to watch?",
|
||||||
"extra": [
|
"extra": [
|
||||||
"What do you want to explore?",
|
"What do you want to stream?",
|
||||||
"What's on your watchlist?",
|
"Sudo-Flix is the best site ever!",
|
||||||
"What's your favorite movie?",
|
"What's on your watchlist today?",
|
||||||
"What's your favorite series?"
|
"How was your day?"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sectionTitle": "Search results"
|
"sectionTitle": "Search results"
|
||||||
|
|
|
@ -104,18 +104,17 @@ function App() {
|
||||||
useHistoryListener();
|
useHistoryListener();
|
||||||
useOnlineListener();
|
useOnlineListener();
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const [showDowntime, setShowDowntime] = useState(true);
|
const [showDowntime, setShowDowntime] = useState(false);
|
||||||
|
|
||||||
const handleButtonClick = () => {
|
const handleButtonClick = () => {
|
||||||
setShowDowntime(false);
|
setShowDowntime(false);
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const token = localStorage.getItem("downtimeToken");
|
const sessionToken = sessionStorage.getItem("downtimeToken");
|
||||||
if (token) {
|
if (!sessionToken) {
|
||||||
setShowDowntime(true);
|
setShowDowntime(true);
|
||||||
} else {
|
sessionStorage.setItem("downtimeToken", "true");
|
||||||
localStorage.setItem("downtimeToken", "true");
|
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue