From d04e0f6374aa213916b7b82e6fa25aaae066bd77 Mon Sep 17 00:00:00 2001 From: glax Date: Sun, 20 Oct 2024 02:09:30 +0200 Subject: [PATCH] Add Basic QueuePopup that opens when clicking in the footer. --- Website/App.tsx | 9 +++- Website/modules/QueuePopUp.tsx | 84 ++++++++++++++++++++++++++++++++++ Website/styles/queuePopUp.css | 70 ++++++++++++++++++++++++++++ 3 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 Website/modules/QueuePopUp.tsx create mode 100644 Website/styles/queuePopUp.css diff --git a/Website/App.tsx b/Website/App.tsx index 7f50e70..01a8f59 100644 --- a/Website/App.tsx +++ b/Website/App.tsx @@ -4,10 +4,12 @@ import Search from "./modules/Search"; import Header from "./modules/Header"; import MonitorJobsList from "./modules/MonitorJobsList"; import './styles/index.css' +import QueuePopUp from "./modules/QueuePopUp"; export default function App(){ const [connected, setConnected] = React.useState(false); const [showSearch, setShowSearch] = React.useState(false); + const [showQueue, setShowQueue] = React.useState(true); const [lastMangaListUpdate, setLastMangaListUpdate] = React.useState(new Date()); const [lastJobListUpdate, setLastJobListUpdate] = React.useState(new Date()); @@ -29,7 +31,6 @@ export default function App(){ }, []); const JobsChanged : EventHandler = () => { - console.log("Updating Mangalist"); setLastMangaListUpdate(new Date()); setLastJobListUpdate(new Date()); } @@ -44,10 +45,14 @@ export default function App(){
: <>} + {showQueue + ? setShowQueue(false)} /> + : <> + } setShowSearch(true)} onJobsChanged={JobsChanged} key={lastMangaListUpdate.getTime()}/> :

No connection to backend

} -