Update to react v19

This commit is contained in:
schroda
2025-04-18 20:42:41 +02:00
parent 213f561fe4
commit 3f93549f34
22 changed files with 52 additions and 58 deletions

View File

@@ -27,7 +27,7 @@ type IconMenuItemProps = {
renderLabel?: () => React.ReactNode;
LeftIcon?: OverridableComponent<SvgIconTypeMap> & { muiName: string };
onClick?: (event: React.MouseEvent<HTMLElement>) => void;
ref?: RefObject<HTMLLIElement>;
ref?: RefObject<HTMLLIElement | null>;
RightIcon?: OverridableComponent<SvgIconTypeMap> & { muiName: string };
sx?: SxProps<Theme>;
};

View File

@@ -7,7 +7,7 @@
*/
import MuiMenu, { MenuProps } from '@mui/material/Menu';
import { useState } from 'react';
import { useState, type JSX } from 'react';
export const Menu = ({
children,