Skip to content

Commit

Permalink
Merge pull request #7413 from takayukioda/patch-1
Browse files Browse the repository at this point in the history
docs: remove deprecated props and unused imports
  • Loading branch information
fzaninotto authored Mar 23, 2022
2 parents 302ec62 + 75cabb9 commit be09f3a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions docs/Theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -830,16 +830,12 @@ const App = () => (
```jsx
// in src/Menu.js
import * as React from 'react';
import { createElement } from 'react';
import { useSelector } from 'react-redux';
import { useMediaQuery } from '@material-ui/core';
import { DashboardMenuItem, Menu, MenuItemLink, getResources } from 'react-admin';
import DefaultIcon from '@material-ui/icons/ViewList';
import LabelIcon from '@material-ui/icons/Label';

export const Menu = (props) => {
const resources = useSelector(getResources);
const open = useSelector(state => state.admin.ui.sidebarOpen);
return (
<Menu {...props}>
<DashboardMenuItem />
Expand All @@ -854,8 +850,6 @@ export const Menu = (props) => {
leftIcon={
resource.icon ? <resource.icon /> : <DefaultIcon />
}
onClick={props.onMenuClick}
sidebarIsOpen={open}
/>
))}
{/* add your custom menus here */}
Expand Down

0 comments on commit be09f3a

Please sign in to comment.