Upgrade React to v18.3
Co-authored-by: Alex Gleason <alex@alexgleason.me> Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -79,7 +79,7 @@ const ModalRoot: React.FC = () => {
|
||||
closeModal(type);
|
||||
};
|
||||
|
||||
const Component = type !== null ? (MODAL_COMPONENTS as Record<keyof typeof MODAL_COMPONENTS, React.LazyExoticComponent<any>>)[type] : null;
|
||||
const Component = type !== null ? (MODAL_COMPONENTS as Record<keyof typeof MODAL_COMPONENTS, React.ExoticComponent<any>>)[type] : null;
|
||||
|
||||
return (
|
||||
<Base onClose={onClickClose} type={type}>
|
||||
|
||||
Reference in New Issue
Block a user