From 8ce7607ceee8cec0f0c773af1c790a375d42e096 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sun, 24 Apr 2022 15:00:27 +0200 Subject: [PATCH] Visual updates asurabar --- src/client/src/FrontPage.js | 2 +- src/client/src/TournamentManager.js | 4 +--- src/client/src/components/AsuraBar.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client/src/FrontPage.js b/src/client/src/FrontPage.js index 6e3182e..9fae354 100644 --- a/src/client/src/FrontPage.js +++ b/src/client/src/FrontPage.js @@ -223,7 +223,7 @@ export default function App() { setUser({ isManager: false, isLoggedIn: false }); }); } - + React.useEffect(() => { fetchUser(); }, []); diff --git a/src/client/src/TournamentManager.js b/src/client/src/TournamentManager.js index 09210e0..cbae582 100644 --- a/src/client/src/TournamentManager.js +++ b/src/client/src/TournamentManager.js @@ -222,9 +222,7 @@ export default function TournamentManager(props) { showError = props.showError; showSuccess = props.showSuccess; - if (!props.user.isLoggedIn) { - return ; - } + if (!props.user.isLoggedIn) { return ; } return ( <> diff --git a/src/client/src/components/AsuraBar.js b/src/client/src/components/AsuraBar.js index 8cf72c0..27074f3 100644 --- a/src/client/src/components/AsuraBar.js +++ b/src/client/src/components/AsuraBar.js @@ -28,7 +28,7 @@ function LoggedInMenu(props) { - +