diff --git a/src/web/src/components/MainNavbar.tsx b/src/web/src/components/MainNavbar.tsx index 64c109ed..163f0445 100644 --- a/src/web/src/components/MainNavbar.tsx +++ b/src/web/src/components/MainNavbar.tsx @@ -15,14 +15,14 @@ import { useNavigate } from "react-router-dom"; import { useAuth0, withAuthenticationRequired } from "@auth0/auth0-react"; import { AppBar } from "@mui/material"; -const settings = ["Profile", "Account", "Dashboard", "Logout"]; +const settings = ["Profile", "Account", "Dashboard"]; type MainNavbarProps = { children: React.ReactNode; }; const MainNavbar: React.FC = ({ children }) => { const navigate = useNavigate(); - const { loginWithRedirect, logout } = useAuth0(); + const { loginWithRedirect, logout, user } = useAuth0(); const [anchorElNav, setAnchorElNav] = React.useState(null); const [anchorElUser, setAnchorElUser] = React.useState(null); @@ -32,7 +32,6 @@ const MainNavbar: React.FC = ({ children }) => { const handleOpenUserMenu = (event: React.MouseEvent) => { setAnchorElUser(event.currentTarget); }; - const handleCloseNavMenu = () => { setAnchorElNav(null); }; @@ -62,7 +61,7 @@ const MainNavbar: React.FC = ({ children }) => { textDecoration: "none", }} > - LOGO + KDVManager @@ -150,7 +149,7 @@ const MainNavbar: React.FC = ({ children }) => { - + = ({ children }) => { {settings.map((setting) => ( { - void logout(); - }} > {setting} ))} + { + void logout(); + }} + > + Logout + {