Complete open sidemenu #11

This commit is contained in:
Prayag Prajapati committed 2023-07-06 15:14:11 +05:30
1 parent 83ebd5de7e
commit ce4b635d78
6 files changed
+58 -36

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiBackburger } from "@mdi/js";
export const MdiBackburger = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiBackburger}></path>
</SvgIcon>
);
};
+12
View File
@@ -0,0 +1,12 @@
/** @format */
import SvgIcon from "@mui/material/SvgIcon";
import { mdiClose } from "@mdi/js";
export const MdiClose = (props) => {
return (
<SvgIcon {...props}>
<path d={mdiClose}></path>
</SvgIcon>
);
};
+12 -18
View File
@@ -22,7 +22,7 @@ import Divider from "@mui/material/Divider";
import MuiDrawer from "@mui/material/Drawer";
import ListItemText from "@mui/material/ListItemText";
import { MdiMenu } from "../icons/mdiMenu";
import { MdiClose } from "../icons/mdiClose";
import { MdiLogoutVariant } from "../icons/mdiLogoutVariant";
import { MediaCollectionTypeIconCollection } from "../../components/utils/iconsCollection.jsx";
@@ -80,7 +80,6 @@ export const SideMenu = ({}) => {
enabled: !!user.data,
networkMode: "always",
});
const handleDrawerOpen = () => {};
const handleLogout = async () => {
console.log("Logging out user...");
@@ -139,14 +138,7 @@ export const SideMenu = ({}) => {
sx={{
justifyContent: "center",
}}
>
{/* <div>
<Avatar src={""}/>
<Typography variant="h3">
{user["Name"]}
</Typography>
</div> */}
</DrawerHeader>
></DrawerHeader>
<Divider />
{libraries.isLoading ? (
<>
@@ -287,27 +279,29 @@ export const SideMenu = ({}) => {
<MuiDrawer
open={open}
variant="persistent"
onClose={() => setDrawerOpen(false)}
elevation={0}
PaperProps={{
sx: {
m: 1,
height: "auto",
minHeight: "-webkit-fill-available",
background: "transparent",
backdropFilter: "blur(15px)",
borderRadius: "15px",
background: "rgb(0 0 0 / 0.5)",
backdropFilter: "blur(10px)",
boxShadow: "0 0 15px rgb(0 0 0 / 0.2)",
width: 260,
},
}}
className="sidemenu-open"
>
<DrawerHeader
className="Mui-DrawerHeader"
sx={{
justifyContent: "center",
justifyContent: "flex-start",
}}
></DrawerHeader>
>
<IconButton onClick={() => setDrawerOpen(false)}>
<MdiClose />
</IconButton>
</DrawerHeader>
<Divider />
{libraries.isLoading ? (
<>
+8
View File
@@ -26,4 +26,12 @@
transform: translateX(0);
}
}
&-open {
.sidemenu-item::before {
width: 100%;
inset: 0;
border-radius: 0;
z-index: -1;
}
}
}