From f8b376768d34874a6a26c8aff86d51f0d13cff36 Mon Sep 17 00:00:00 2001 From: Kristoffer Juelsen Date: Wed, 6 Apr 2022 14:23:20 +0200 Subject: [PATCH] AsuraBar React.state fix --- src/client/src/components/AsuraBar.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/client/src/components/AsuraBar.js b/src/client/src/components/AsuraBar.js index d1678b9..ab91c0a 100644 --- a/src/client/src/components/AsuraBar.js +++ b/src/client/src/components/AsuraBar.js @@ -7,7 +7,7 @@ import HistoryIcon from '@mui/icons-material/History'; import LogoutIcon from '@mui/icons-material/Logout'; import logo from "./../Asura2222.png"; -function loggedInMenu() { +function LoggedInMenu() { const [anchorEl, setAnchorEl] = React.useState(null); const open = Boolean(anchorEl); const handleClick = (event) => { @@ -30,6 +30,7 @@ function loggedInMenu() { ); } + function notLoggedInButton() { return ( <> @@ -43,7 +44,7 @@ function notLoggedInButton() { } export default function Appbar(props) { - const isLoggedIn = true; + const isLoggedIn = false; return ( <> @@ -70,7 +71,7 @@ export default function Appbar(props) {

{props.pageTitle || ""}

- { isLoggedIn ? : } + { isLoggedIn ? : }