1
0
Fork 0
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:
Cooper Ransom 2024-03-03 00:03:34 -05:00
parent fd00b65276
commit eb331e4323
2 changed files with 10 additions and 11 deletions

View file

@ -114,17 +114,17 @@
"stopEditing": "Stop editing"
},
"search": {
"allResults": "That's all we have!",
"allResults": "That's all we have...",
"failed": "Failed to find media, try again!",
"loading": "Loading...",
"noResults": "We couldn't find anything!",
"noResults": "We couldn't find anything :(",
"placeholder": {
"default": "What do you want to watch?",
"extra": [
"What do you want to explore?",
"What's on your watchlist?",
"What's your favorite movie?",
"What's your favorite series?"
"What do you want to stream?",
"Sudo-Flix is the best site ever!",
"What's on your watchlist today?",
"How was your day?"
]
},
"sectionTitle": "Search results"

View file

@ -104,18 +104,17 @@ function App() {
useHistoryListener();
useOnlineListener();
const { t } = useTranslation();
const [showDowntime, setShowDowntime] = useState(true);
const [showDowntime, setShowDowntime] = useState(false);
const handleButtonClick = () => {
setShowDowntime(false);
};
useEffect(() => {
const token = localStorage.getItem("downtimeToken");
if (token) {
const sessionToken = sessionStorage.getItem("downtimeToken");
if (!sessionToken) {
setShowDowntime(true);
} else {
localStorage.setItem("downtimeToken", "true");
sessionStorage.setItem("downtimeToken", "true");
}
}, []);