Skip to content

Commit

Permalink
Merge pull request #4241 from steurt/next
Browse files Browse the repository at this point in the history
[RFR] Also pass the dense prop from the Menu to the DashboardMenuItem
  • Loading branch information
djhi authored Jan 6, 2020
2 parents ae3c2f7 + 2f0934d commit 31f8aee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/ra-ui-materialui/src/layout/DashboardMenuItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const DashboardMenuItem = ({ locale, onClick, ...props }) => {
primaryText={translate('ra.page.dashboard')}
leftIcon={<DashboardIcon />}
exact
dense
{...props}
/>
);
Expand Down
6 changes: 5 additions & 1 deletion packages/ra-ui-materialui/src/layout/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ const Menu = ({
return (
<div className={classnames(classes.main, className)} {...rest}>
{hasDashboard && (
<DashboardMenuItem onClick={onMenuClick} sidebarIsOpen={open} />
<DashboardMenuItem
onClick={onMenuClick}
dense={dense}
sidebarIsOpen={open}
/>
)}
{resources
.filter(r => r.hasList)
Expand Down

0 comments on commit 31f8aee

Please sign in to comment.