diff --git a/docs/Theming.md b/docs/Theming.md index f277df3f3ac..601e742e461 100644 --- a/docs/Theming.md +++ b/docs/Theming.md @@ -916,7 +916,7 @@ import Badge from '@material-ui/core/Badge'; } /> ``` -The `icon` prop allows to set the menu left icon. +The `letfIcon` prop allows to set the menu left icon. Additional props are passed down to [the underling material-ui `` component](https://material-ui.com/api/menu-item/#menuitem-api). diff --git a/packages/ra-ui-materialui/src/layout/Menu.tsx b/packages/ra-ui-materialui/src/layout/Menu.tsx index 0a8290d2dd5..e803e734a49 100644 --- a/packages/ra-ui-materialui/src/layout/Menu.tsx +++ b/packages/ra-ui-materialui/src/layout/Menu.tsx @@ -4,7 +4,6 @@ import PropTypes from 'prop-types'; import { shallowEqual, useSelector } from 'react-redux'; import lodashGet from 'lodash/get'; // @ts-ignore -import { useMediaQuery, Theme } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import DefaultIcon from '@material-ui/icons/ViewList'; import classnames from 'classnames'; diff --git a/packages/ra-ui-materialui/src/layout/Sidebar.tsx b/packages/ra-ui-materialui/src/layout/Sidebar.tsx index 37cd3797414..62f2a9dcc7e 100644 --- a/packages/ra-ui-materialui/src/layout/Sidebar.tsx +++ b/packages/ra-ui-materialui/src/layout/Sidebar.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Children, cloneElement, ReactElement } from 'react'; +import { ReactElement } from 'react'; import PropTypes from 'prop-types'; import { useDispatch, useSelector } from 'react-redux'; import { Drawer, DrawerProps, useMediaQuery, Theme } from '@material-ui/core';