diff --git a/react-frontend/src/components/ResponsiveAppBar.tsx b/react-frontend/src/components/ResponsiveAppBar.tsx index 957ac71..6f8a882 100644 --- a/react-frontend/src/components/ResponsiveAppBar.tsx +++ b/react-frontend/src/components/ResponsiveAppBar.tsx @@ -12,170 +12,172 @@ import Button from "@mui/material/Button"; import Tooltip from "@mui/material/Tooltip"; import MenuItem from "@mui/material/MenuItem"; import ExtensionIcon from "@mui/icons-material/Extension"; -import { Link } from "react-router-dom"; +import {Link} from "react-router-dom"; const pages: { - title: string; - href: string; + title: string; + href: string; }[] = [ - { - title: "Path Creator", - href: "/path", - }, + { + title: "Path Creator", + href: "/path", + }, { + title: "Solver", + href: "/", + }, ]; const settings = ["Profile", "Account", "Dashboard", "Logout"]; function ResponsiveAppBar() { - const [anchorElNav, setAnchorElNav] = React.useState( - null - ); - const [anchorElUser, setAnchorElUser] = React.useState( - null - ); + const [anchorElNav, setAnchorElNav] = React.useState( + null + ); + const [anchorElUser, setAnchorElUser] = React.useState( + null + ); - const handleOpenNavMenu = (event: React.MouseEvent) => { - setAnchorElNav(event.currentTarget); - }; - const handleOpenUserMenu = (event: React.MouseEvent) => { - setAnchorElUser(event.currentTarget); - }; + const handleOpenNavMenu = (event: React.MouseEvent) => { + setAnchorElNav(event.currentTarget); + }; + const handleOpenUserMenu = (event: React.MouseEvent) => { + setAnchorElUser(event.currentTarget); + }; - const handleCloseNavMenu = () => { - setAnchorElNav(null); - }; + const handleCloseNavMenu = () => { + setAnchorElNav(null); + }; - const handleCloseUserMenu = () => { - setAnchorElUser(null); - }; + const handleCloseUserMenu = () => { + setAnchorElUser(null); + }; - return ( - - - - - - Eternity II - + return ( + + + + + + Eternity II + - - - - - - {pages.map((page) => ( - - {page.title} - - ))} - - - - - Eternity II - - - {pages.map((page) => ( - - ))} - + + + + + + {pages.map((page) => ( + + {page.title} + + ))} + + + + + Eternity II + + + {pages.map((page) => ( + + ))} + - - - - - - - - {settings.map((setting) => ( - - {setting} - - ))} - - - - - - ); + + + + + + + + {settings.map((setting) => ( + + {setting} + + ))} + + + + + + ); } export default ResponsiveAppBar;