From 68cc3f3b8223141bff1b02291fc20d55e441e06c Mon Sep 17 00:00:00 2001 From: Kristoffer Juelsen Date: Wed, 6 Apr 2022 15:18:51 +0200 Subject: [PATCH] Mostly completed appbar, waiting for login --- src/client/src/components/AsuraBar.js | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/src/client/src/components/AsuraBar.js b/src/client/src/components/AsuraBar.js index ab91c0a..0add161 100644 --- a/src/client/src/components/AsuraBar.js +++ b/src/client/src/components/AsuraBar.js @@ -16,6 +16,12 @@ function LoggedInMenu() { const handleClose = () => { setAnchorEl(null); }; + + const logout = () => { + console.log("Logged out"); + setAnchorEl(null); + } + return ( <> @@ -24,18 +30,23 @@ function LoggedInMenu() { - + ); } -function notLoggedInButton() { +function NotLoggedInButton() { + + const login = () => { + console.log("Logged in"); + } + return ( <> - - @@ -44,7 +55,7 @@ function notLoggedInButton() { } export default function Appbar(props) { - const isLoggedIn = false; + const isLoggedIn = true; // props.isLoggedIn; return ( <> @@ -71,7 +82,7 @@ export default function Appbar(props) {

{props.pageTitle || ""}

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