From b87bad101aeaf29cf1b97138e34d1a2f283b3688 Mon Sep 17 00:00:00 2001 From: Kirill Dyachkovskiy <81510334+KirillDyachkovskiy@users.noreply.github.com> Date: Wed, 24 Jul 2024 17:06:39 +0300 Subject: [PATCH] fix(Notification): correct `onClick` type for action (#212) Co-authored-by: kirill --- src/components/Notification/definitions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Notification/definitions.ts b/src/components/Notification/definitions.ts index c1099de5..02e801ea 100644 --- a/src/components/Notification/definitions.ts +++ b/src/components/Notification/definitions.ts @@ -43,7 +43,7 @@ export type NotificationActionProps = { view?: ButtonProps['view']; icon?: IconData; text: string; - onClick?: () => void; + onClick?: (event: React.MouseEvent) => void; href?: string; target?: '_blank'; };