diff --git a/frontend/src/SideMenu.js b/frontend/src/SideMenu.js index 1b5791d1..125b7e6a 100644 --- a/frontend/src/SideMenu.js +++ b/frontend/src/SideMenu.js @@ -21,28 +21,56 @@ const drawerWidth = 240; export default function SideMenu() { const context = useContext(PageContext); + + const menuItems = [{ + text: "Home", + href: context.sandboxId ? `/sandbox/${context.sandboxId}` : "/", + icon: , + displayText: "Home", + }, + { + text: "Dashboard", + href: context.sandboxId ? `/sandbox/dashboard/${context.sandboxId}` : "/dashboard", + icon: , + displayText: "Validation", + },]; + return ( - - + - {['Home', 'Dashboard'].map((text, index) => ( - - - - {text === "Home" ? : } + {menuItems.map((item, index) => ( + + + + {item.icon} - + + - + ))}