|
|
|
@ -1,10 +1,10 @@
|
|
|
|
|
import { Drawer, IconButton } from "@mui/joy";
|
|
|
|
|
import { useEffect, useState } from "react";
|
|
|
|
|
import { useLocation } from "react-router-dom";
|
|
|
|
|
import Header from "./Header";
|
|
|
|
|
import Icon from "./Icon";
|
|
|
|
|
import Navigation from "./Navigation";
|
|
|
|
|
|
|
|
|
|
const HeaderDrawer = () => {
|
|
|
|
|
const NavigationDrawer = () => {
|
|
|
|
|
const location = useLocation();
|
|
|
|
|
const [open, setOpen] = useState(false);
|
|
|
|
|
|
|
|
|
@ -25,13 +25,13 @@ const HeaderDrawer = () => {
|
|
|
|
|
<IconButton onClick={toggleDrawer(true)}>
|
|
|
|
|
<Icon.Menu className="w-5 h-auto dark:text-gray-200" />
|
|
|
|
|
</IconButton>
|
|
|
|
|
<Drawer anchor="left" open={open} onClose={toggleDrawer(false)}>
|
|
|
|
|
<Drawer anchor="left" size="sm" open={open} onClose={toggleDrawer(false)}>
|
|
|
|
|
<div className="w-full px-4">
|
|
|
|
|
<Header />
|
|
|
|
|
<Navigation />
|
|
|
|
|
</div>
|
|
|
|
|
</Drawer>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default HeaderDrawer;
|
|
|
|
|
export default NavigationDrawer;
|