fix: remove avatar from toolbar and add to sidenav header
This commit is contained in:
@@ -63,21 +63,9 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
||||
)}
|
||||
<Logo />
|
||||
</Box>
|
||||
<Box
|
||||
sx={{ display: 'flex', height: '100%', alignItems: 'center', gap: 1 }}
|
||||
>
|
||||
{isMobile && (
|
||||
<Avatar
|
||||
sx={{ width: 32, height: 32, fontSize: '14px' }}
|
||||
src={user.picture}
|
||||
>
|
||||
{user.firstName.charAt(0) + ' ' + user.lastName.charAt(0)}
|
||||
</Avatar>
|
||||
)}
|
||||
<IconButton color="primary" onClick={handleClick}>
|
||||
<Icon Component={Menu} variant="Bold" />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<ProductsMenu anchorEl={anchorEl} onClose={handleClose} open={open} />
|
||||
</MuiToolbar>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user