diff --git a/Data/Server/WebUI/src/App.jsx b/Data/Server/WebUI/src/App.jsx index 5564ca7..824a4fa 100644 --- a/Data/Server/WebUI/src/App.jsx +++ b/Data/Server/WebUI/src/App.jsx @@ -19,7 +19,11 @@ import { Button, CssBaseline, ThemeProvider, - createTheme + createTheme, + List, + ListItem, + ListItemButton, + ListItemText } from "@mui/material"; // Material UI - Icons @@ -119,6 +123,7 @@ export default function App() { } ]); const [activeTabId, setActiveTabId] = useState("flow_1"); + const [currentPage, setCurrentPage] = useState("jobs"); const [aboutAnchorEl, setAboutAnchorEl] = useState(null); const [creditsDialogOpen, setCreditsDialogOpen] = useState(false); @@ -383,33 +388,9 @@ export default function App() { } }; - return ( - - - - - - - - - - { handleAboutMenuClose(); window.open("https://git.bunny-lab.io/bunny-lab/Borealis", "_blank"); }}> - Gitea Project - - - Credits - - - - + const renderMainContent = () => { + if (currentPage === "workflow-editor") { + return ( + ); + } + if (currentPage === "jobs") { + return ( + + + + ); + } + return ( + + Select a section from navigation. + + ); + }; + + return ( + + + + + + + + + + { handleAboutMenuClose(); window.open("https://git.bunny-lab.io/bunny-lab/Borealis", "_blank"); }}> + Gitea Project + + + Credits + + + + + + + + + setCurrentPage("devices")}> + + + + + + + + setCurrentPage("filters")}> + + + setCurrentPage("groups")}> + + + + + + + + setCurrentPage("jobs")}> + + + setCurrentPage("workflows")}> + + + setCurrentPage("community")}> + + + + + + + {renderMainContent()} + +