mirror of
				https://github.com/D4M13N-D3V/comissions-app-ui.git
				synced 2025-10-31 09:35:21 +00:00 
			
		
		
		
	fix: landing page user buttons
This commit is contained in:
		
							parent
							
								
									937faf1847
								
							
						
					
					
						commit
						9169063a08
					
				| @ -11,7 +11,7 @@ import MenuItem from '@mui/material/MenuItem'; | ||||
| import Drawer from '@mui/material/Drawer'; | ||||
| import MenuIcon from '@mui/icons-material/Menu'; | ||||
| import ToggleColorMode from './ToggleColorMode'; | ||||
| import { ArrowLeftOutlined, ArrowRightRounded, OpenInNew } from '@mui/icons-material'; | ||||
| import { ArrowLeftOutlined, ArrowRightRounded, Logout, OpenInNew } from '@mui/icons-material'; | ||||
| 
 | ||||
| const logoStyle = { | ||||
|   width: '140px', | ||||
| @ -139,6 +139,8 @@ function AppAppBar({ user }: AppAppBarProps) { | ||||
|               }} | ||||
|             > | ||||
|               {(user ? ( | ||||
|                 <> | ||||
|                 <Button color="primary">{user.nickname}</Button> | ||||
|                 <Button | ||||
|                   color="secondary" | ||||
|                   variant="contained" | ||||
| @ -149,6 +151,17 @@ function AppAppBar({ user }: AppAppBarProps) { | ||||
|                 > | ||||
|                   Dashboard | ||||
|                 </Button> | ||||
|                 <Button | ||||
|                   color="error" | ||||
|                   variant="outlined" | ||||
|                   size="small" | ||||
|                   component="a" | ||||
|                   href="/api/auth/logout" | ||||
|                   startIcon={<Logout  />} | ||||
|                 > | ||||
|                   Logout | ||||
|                 </Button> | ||||
|                 </> | ||||
|               ) : ( | ||||
|                 <Box> | ||||
|                   <Button | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Damien Ostler
						Damien Ostler