changed the swipeable drawer to use a different variant when closed so the faded background doesn't linger
This commit is contained in:
parent
4c8664841f
commit
2c4aceb13c
4 changed files with 22 additions and 24 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue