changed the swipeable drawer to use a different variant when closed so the faded background doesn't linger

This commit is contained in:
Carter 2025-04-01 11:42:46 -06:00
parent 4c8664841f
commit 2c4aceb13c
4 changed files with 22 additions and 24 deletions

View file

@ -217,7 +217,7 @@ export default function SideNavigator(props: Props) {
id="tour-dashboard"
onClick={() => goTo("/users")}
classes={getClasses("/user")}
>
>
<ListItemIcon>
<Person />
</ListItemIcon>
@ -238,7 +238,7 @@ export default function SideNavigator(props: Props) {
</ListItemButton>
</Tooltip>
)}
{(IsOmniAir || user.hasFeature("admin")) && (
{(IsOmniAir() || user.hasFeature("admin")) && (
<Tooltip title="Aviation Map" placement="right">
<ListItemButton
id="tour-aviation-map"
@ -258,7 +258,8 @@ export default function SideNavigator(props: Props) {
return (
<SwipeableDrawer
variant={width === "xs" || width === "sm" ? "temporary" : "permanent"}
// variant={width === "xs" || width === "sm" ? "temporary" : "permanent"}
variant={!open ? "permanent" : width === "xs" || width === "sm" ? "temporary" : "permanent"}
classes={{
paper: classNames(
classes.sideMenu,