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

} -