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; showError = props.showError;
showSuccess = props.showSuccess; showSuccess = props.showSuccess;
if (!props.user.isLoggedIn) { if (!props.user.isLoggedIn) { return <LoginPage user={props.user} />; }
return <LoginPage user={props.user} />;
}
return ( return (
<> <>

View File

@ -28,7 +28,7 @@ function LoggedInMenu(props) {
<IconButton size="large" edge="start" color="inherit" aria-label="menu" onClick={handleClick}> <IconButton size="large" edge="start" color="inherit" aria-label="menu" onClick={handleClick}>
<MenuIcon /> <MenuIcon />
</IconButton> </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="/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="/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> <Link to="/api/logout" style={{color:"black"}}><MenuItem onClick={logout}><Button endIcon={<LogoutIcon />} >Logout</Button></MenuItem></Link>