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 ( -