diff --git a/packages/react-admin-mui/src/menu/Item.tsx b/packages/react-admin-mui/src/menu/Item.tsx index 3f466efe6e..6ee49c2aa6 100644 --- a/packages/react-admin-mui/src/menu/Item.tsx +++ b/packages/react-admin-mui/src/menu/Item.tsx @@ -14,14 +14,7 @@ export interface IMenuItemProps extends IMenuLevel { type MuiListItemProps = Pick> & { component?: React.ElementType }; -export const MenuItem: React.FunctionComponent = ({ - text, - icon, - level, - secondaryAction, - onClick, - ...otherProps -}) => { +export const MenuItem: React.FunctionComponent = ({ text, icon, level, secondaryAction, ...otherProps }) => { const context = React.useContext(MenuContext); if (!context) throw new Error("Could not find context for menu"); const hasIcon = !!icon;