From 275e2e90d5d146c8a96f38590fe856d80383c732 Mon Sep 17 00:00:00 2001 From: yosi <48201022+yosipy@users.noreply.github.com> Date: Thu, 29 Aug 2024 02:06:10 +0900 Subject: [PATCH] chore(Modal): fixed Props type to use DialogHTMLAttributes (#459) * feat(Modal): added ariaHidden to Modal component Props. (#456) * fix(Modal): fixed Props type to use DialogHTMLAttributes * refactor: remove ModalLegacyProps as it is not used --- src/Modal/Modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Modal/Modal.tsx b/src/Modal/Modal.tsx index 5211c948..6ec7c8a6 100644 --- a/src/Modal/Modal.tsx +++ b/src/Modal/Modal.tsx @@ -7,9 +7,9 @@ import { IComponentBaseProps } from '../types' import ModalActions from './ModalActions' import ModalBody from './ModalBody' import ModalHeader from './ModalHeader' -import ModalLegacy, { ModalProps as ModalLegacyProps } from './ModalLegacy' +import ModalLegacy from './ModalLegacy' -export type ModalProps = React.HTMLAttributes & +export type ModalProps = React.DialogHTMLAttributes & IComponentBaseProps & { open?: boolean responsive?: boolean