Skip to content

Commit

Permalink
fix(drawerMenu): disable swipping
Browse files Browse the repository at this point in the history
  • Loading branch information
Clm-Roig committed Feb 6, 2024
1 parent 90983f1 commit 870e88f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/app/DrawerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ import {
Box,
Button,
Divider,
Drawer,
IconButton,
List,
ListItemButton,
ListItemIcon,
ListItemText,
SwipeableDrawer
ListItemText
} from '@mui/material';
import { FC } from 'react';
import { Link, useLocation } from 'react-router-dom';
Expand Down Expand Up @@ -82,12 +82,10 @@ const DrawerMenu: FC<Props> = ({ open, toggleDrawerMenu, toggleThemeMode, width
];

return (
<SwipeableDrawer
<Drawer
anchor="left"
onClose={toggleDrawerMenu}
onOpen={toggleDrawerMenu}
open={open}
swipeAreaWidth={70}
sx={{
width: width,
flexShrink: 0,
Expand Down Expand Up @@ -124,7 +122,7 @@ const DrawerMenu: FC<Props> = ({ open, toggleDrawerMenu, toggleThemeMode, width
À Propos
</Button>
</Box>
</SwipeableDrawer>
</Drawer>
);
};

Expand Down

0 comments on commit 870e88f

Please sign in to comment.