diff --git a/src/components/molecules/Toobar/Toobar.tsx b/src/components/molecules/Toobar/Toobar.tsx index b155437..fcde22c 100644 --- a/src/components/molecules/Toobar/Toobar.tsx +++ b/src/components/molecules/Toobar/Toobar.tsx @@ -2,6 +2,7 @@ import React from 'react' import { Link as RouterLink } from 'react-router-dom' import { AppBar, + AppBarProps, Box, Button, Divider, @@ -35,10 +36,10 @@ const DrawerButton = styled(ListItemButton)(({ theme }) => ({ }, })) -type CustomToobarProps = { +interface CustomToobarProps extends AppBarProps { drawerWidth?: number } -const CustomToobar: React.FC = ({ drawerWidth = 240 }) => { +const CustomToobar: React.FC = ({ drawerWidth = 240, ...props }) => { const [mobileOpen, setMobileOpen] = React.useState(false) const handleDrawerToggle = () => { @@ -84,8 +85,11 @@ const CustomToobar: React.FC = ({ drawerWidth = 240 }) => { return ( <> (theme.palette.mode === 'dark' ? 'background.paper' : undefined), + ...props.sx, }}> = ({ drawerWidth = 240 }) => { aria-label="open drawer" edge="start" onClick={handleDrawerToggle} - sx={{ mr: 2, display: { sm: 'none' }, position: 'absolute', backgroundColor: 'primary' }}> + sx={{ mr: 2, display: { md: 'none' }, position: 'absolute', backgroundColor: 'primary' }}> - + Michele Tartari - + Home