diff --git a/frontend/src/components/Header.js b/frontend/src/components/Header.js index f13e66db..080caeed 100644 --- a/frontend/src/components/Header.js +++ b/frontend/src/components/Header.js @@ -147,92 +147,56 @@ const Header = ({ authSession }) => { Sandbox - {/**** LOG IN/OUT ****/} - - - {authSession.isLoggedIn() ? - <> - + + {authSession.isLoggedIn() && <> + + + + + {authSession.getIdField('email')} - - - - : - + } + {!authSession.isLoggedIn() && + } - - - - - - {authSession.isLoggedIn() ? - <> - - {authSession.getIdField('email')} - - authSession.openLogout()} - > - Logout - - - : - <> - authSession.openLogin()} - > - Login - - - } - - -