Skip to content

Commit

Permalink
feat(ui): Use non-swipable drawer for better performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Dec 30, 2021
1 parent 6a6ba65 commit 25298a0
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions frontend/src/components/ValetudoAppBar.tsx
Expand Up @@ -3,14 +3,14 @@ import {
Box,
createSvgIcon,
Divider,
Drawer,
IconButton,
List,
ListItem,
ListItemIcon,
ListItemText,
ListSubheader,
PaletteMode,
SwipeableDrawer,
Switch,
Toolbar,
Typography
Expand Down Expand Up @@ -441,17 +441,14 @@ const ValetudoAppBar: React.FunctionComponent<{ paletteMode: PaletteMode, setPal
<Toolbar/>
{
currentMenuEntry.kind !== "MenuSubEntry" &&
<SwipeableDrawer
<Drawer
anchor={"left"}
open={drawerOpen}
onOpen={() => {
setDrawerOpen(true);
}}
onClose={() => {
setDrawerOpen(false);
}}>
{drawerContent}
</SwipeableDrawer>
</Drawer>
}
</Box>
);
Expand Down

0 comments on commit 25298a0

Please sign in to comment.