Visual updates asurabar

This commit is contained in:
Felix Albrigtsen 2022-04-24 15:00:27 +02:00
parent 5246d7e4d1
commit 8ce7607cee
3 changed files with 3 additions and 5 deletions

View File

@ -222,9 +222,7 @@ export default function TournamentManager(props) {
showError = props.showError;
showSuccess = props.showSuccess;
if (!props.user.isLoggedIn) {
return <LoginPage user={props.user} />;
}
if (!props.user.isLoggedIn) { return <LoginPage user={props.user} />; }
return (
<>

View File

@ -28,7 +28,7 @@ function LoggedInMenu(props) {
<IconButton size="large" edge="start" color="inherit" aria-label="menu" onClick={handleClick}>
<MenuIcon />
</IconButton>
<Menu anchorEl={anchorEl} open={open} onClose={handleClose} MenuListProps={{'aria-labelledby': 'basic-button',}} sx={{position:"absolute"}}>
<Menu anchorEl={anchorEl} open={open} onClose={handleClose} MenuListProps={{'aria-labelledby': 'basic-button',}} sx={{position:"absolute", display:"flex", justifyContent:"right", flexFlow:"column"}}>
<Link to="/profile" style={{color:"black"}}><MenuItem onClick={handleClose}><Button endIcon={<AccountCircleIcon />}>{props.user.name}</Button></MenuItem></Link>
<Link to="/history" style={{color:"black"}}><MenuItem onClick={handleClose}><Button endIcon={<HistoryIcon />}>History</Button></MenuItem></Link>
<Link to="/api/logout" style={{color:"black"}}><MenuItem onClick={logout}><Button endIcon={<LogoutIcon />} >Logout</Button></MenuItem></Link>