[SKIP CI][ESLint] Fix linting issue
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* src: https://github.com/webzep/mui-nested-menu (2024-04-20 01:42)
|
* src: https://github.com/webzep/mui-nested-menu/blob/main/packages/mui-nested-menu/src/components/IconMenuItem.tsx (2024-04-20 01:42)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import ListItemIcon from '@mui/material/ListItemIcon';
|
import ListItemIcon from '@mui/material/ListItemIcon';
|
||||||
@@ -34,7 +34,7 @@ type IconMenuItemProps = {
|
|||||||
|
|
||||||
export const IconMenuItem = forwardRef<HTMLLIElement, IconMenuItemProps>(
|
export const IconMenuItem = forwardRef<HTMLLIElement, IconMenuItemProps>(
|
||||||
({ MenuItemProps, className, label, LeftIcon, renderLabel, RightIcon, ...props }, ref) => (
|
({ MenuItemProps, className, label, LeftIcon, renderLabel, RightIcon, ...props }, ref) => (
|
||||||
<MenuItem {...MenuItemProps} ref={ref}>
|
<MenuItem {...MenuItemProps} ref={ref} className={className} {...props}>
|
||||||
{LeftIcon && (
|
{LeftIcon && (
|
||||||
<ListItemIcon>
|
<ListItemIcon>
|
||||||
<LeftIcon fontSize="small" />
|
<LeftIcon fontSize="small" />
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* src: https://github.com/webzep/mui-nested-menu (2024-04-20 01:42)
|
* src: https://github.com/webzep/mui-nested-menu/blob/main/packages/mui-nested-menu/src/components/NestedMenuItem.tsx (2024-04-20 01:42)
|
||||||
*
|
*
|
||||||
* with a few changes to fix a bug on mobile devices where opening the sub menu immediately triggered the on click of the underlying menu item
|
* with a few changes to fix a bug on mobile devices where opening the sub menu immediately triggered the on click of the underlying menu item
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user