Skip to content

Commit

Permalink
Merge pull request #5811 from marmelab/theming-custom-menu
Browse files Browse the repository at this point in the history
[Doc] Fix custom menu example misses Dashboard link
  • Loading branch information
djhi authored Jan 22, 2021
2 parents 73ff84a + 0060c21 commit 4e8bb93
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/Theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ import * as React from 'react';
import { createElement } from 'react';
import { useSelector } from 'react-redux';
import { useMediaQuery } from '@material-ui/core';
import { MenuItemLink, getResources } from 'react-admin';
import { DashboardMenuItem, MenuItemLink, getResources } from 'react-admin';
import DefaultIcon from '@material-ui/icons/ViewList';
import LabelIcon from '@material-ui/icons/Label';

Expand All @@ -814,6 +814,7 @@ const Menu = ({ onMenuClick, logout }) => {
const resources = useSelector(getResources);
return (
<div>
<DashboardMenuItem onClick={onMenuClick} sidebarIsOpen={open} />
{resources.map(resource => (
<MenuItemLink
key={resource.name}
Expand Down

0 comments on commit 4e8bb93

Please sign in to comment.