From bb227ee39aab81b49ce71556d74f5417775ad2a6 Mon Sep 17 00:00:00 2001 From: Yossi Saadi Date: Tue, 10 Sep 2024 18:33:50 +0300 Subject: [PATCH] types(ModalTopActions): fix type of close event for top actions the only case is mouse event when clicking the "x" close button --- .../ModalNew/ModalTopActions/ModalTopActions.types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/components/ModalNew/ModalTopActions/ModalTopActions.types.ts b/packages/core/src/components/ModalNew/ModalTopActions/ModalTopActions.types.ts index d05cdd3b9e..cec3799591 100644 --- a/packages/core/src/components/ModalNew/ModalTopActions/ModalTopActions.types.ts +++ b/packages/core/src/components/ModalNew/ModalTopActions/ModalTopActions.types.ts @@ -13,5 +13,5 @@ export interface ModalTopActionsProps { renderAction?: (color?: ModalTopActionsButtonColor) => React.ReactElement; color?: ModalTopActionsColor; closeButtonAriaLabel?: string; - onClose?: React.MouseEventHandler; + onClose?: (e: React.MouseEvent) => void; }