File tree 1 file changed +4
-2
lines changed
packages/ra-ui-materialui/src/layout
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { StaticContext } from 'react-router';
12
12
import { NavLink , NavLinkProps } from 'react-router-dom' ;
13
13
import MenuItem , { MenuItemProps } from '@material-ui/core/MenuItem' ;
14
14
import ListItemIcon from '@material-ui/core/ListItemIcon' ;
15
- import Tooltip from '@material-ui/core/Tooltip' ;
15
+ import Tooltip , { TooltipProps } from '@material-ui/core/Tooltip' ;
16
16
import { makeStyles } from '@material-ui/core/styles' ;
17
17
18
18
const NavLinkRef = forwardRef < HTMLAnchorElement , NavLinkProps > ( ( props , ref ) => (
@@ -40,6 +40,7 @@ const MenuItemLink: FC<MenuItemLinkProps> = forwardRef((props, ref) => {
40
40
leftIcon,
41
41
onClick,
42
42
sidebarIsOpen,
43
+ tooltipProps,
43
44
...rest
44
45
} = props ;
45
46
const classes = useStyles ( props ) ;
@@ -78,7 +79,7 @@ const MenuItemLink: FC<MenuItemLinkProps> = forwardRef((props, ref) => {
78
79
}
79
80
80
81
return (
81
- < Tooltip title = { primaryText } placement = "right" >
82
+ < Tooltip title = { primaryText } placement = "right" { ... tooltipProps } >
82
83
{ renderMenuItem ( ) }
83
84
</ Tooltip >
84
85
) ;
@@ -89,6 +90,7 @@ interface Props {
89
90
primaryText ?: ReactNode ;
90
91
staticContext ?: StaticContext ;
91
92
sidebarIsOpen : boolean ;
93
+ tooltipProps ?: TooltipProps ;
92
94
}
93
95
94
96
export type MenuItemLinkProps = Props &
You can’t perform that action at this time.
0 commit comments