From 9f03ec9b0f62afa1b3ef9a0eb551d43e6672147f Mon Sep 17 00:00:00 2001 From: Manuel Stahl Date: Mon, 5 Feb 2024 11:48:22 +0100 Subject: [PATCH] Remove unused Menu.js Change-Id: Idac1d6bcfd703ee499a2522eace6411e48ac176b --- src/components/Menu.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100644 src/components/Menu.js diff --git a/src/components/Menu.js b/src/components/Menu.js deleted file mode 100644 index f65ac3a..0000000 --- a/src/components/Menu.js +++ /dev/null @@ -1,37 +0,0 @@ -// in src/Menu.js -import * as React from "react"; -import { useMediaQuery } from "@mui/material"; -import { - MenuItemLink, - useResourceDefinitions, - useSidebarState, -} from "react-admin"; -import DefaultIcon from "@mui/icons-material/ViewList"; - -const Menu = ({ onMenuClick, logout }) => { - const isXSmall = useMediaQuery(theme => theme.breakpoints.down("xs")); - const [open] = useSidebarState(); - const resourcesDefinitions = useResourceDefinitions(); - const resources = Object.keys(resourcesDefinitions).map( - name => resourcesDefinitions[name] - ); - return ( -
- {resources.map(resource => ( - : } - onClick={onMenuClick} - sidebarIsOpen={open} - /> - ))} - {isXSmall && logout} -
- ); -}; - -export default Menu;