diff --git a/src/components/appBar/appBar.jsx b/src/components/appBar/appBar.jsx index 3cecb78..94f672a 100644 --- a/src/components/appBar/appBar.jsx +++ b/src/components/appBar/appBar.jsx @@ -113,7 +113,7 @@ export const AppBar = () => {
{ + return ( + + + + ); +}; diff --git a/src/components/menu/sidemenu.jsx b/src/components/menu/sidemenu.jsx index 7fb0bdd..f3b2cf3 100644 --- a/src/components/menu/sidemenu.jsx +++ b/src/components/menu/sidemenu.jsx @@ -21,6 +21,7 @@ import IconButton from "@mui/material/IconButton"; import Divider from "@mui/material/Divider"; import MuiDrawer from "@mui/material/Drawer"; import ListItemText from "@mui/material/ListItemText"; +import Typography from "@mui/material/Typography"; import { MdiClose } from "../icons/mdiClose"; import { MdiLogoutVariant } from "../icons/mdiLogoutVariant"; @@ -33,8 +34,7 @@ import { EventEmitter as event } from "../../eventEmitter.js"; import "./sidemenu.module.scss"; import { useDrawerStore } from "../../utils/store/drawer"; - -const drawerWidth = 320; +import { MdiHomeVariant } from "../icons/mdiHomeVariant"; const DrawerHeader = styled("div")(({ theme }) => ({ display: "flex", @@ -122,14 +122,14 @@ export const SideMenu = ({}) => { sx: { backgroundColor: "inherit", border: "none", - width: `4em`, + width: `5em`, height: "100vh", zIndex: "1", }, }} sx={{ zIndex: 1, - width: `calc(${theme.spacing(7)} + 10px)`, + width: `5em`, background: "transparent !important ", }} > @@ -139,146 +139,69 @@ export const SideMenu = ({}) => { justifyContent: "center", }} > - {libraries.isLoading ? ( - <> - - - ) : ( - <> - - + {libraries.isLoading ? ( + <> + ) : ( + <> + - + +
+ - - - - - - - + Home + + {libraries.data.Items.map( - (library, index) => { + (lib, index) => { return ( - - + { + MediaCollectionTypeIconCollection[ + lib + .CollectionType + ] + } + + - - - { - MediaCollectionTypeIconCollection[ - library - .CollectionType - ] - } - - - - + {lib.Name} + + ); }, )} - - - - - - - - - - - - - - )} + + )} +