From 994261c914799d9c34d9169cc3756a92f9b66e78 Mon Sep 17 00:00:00 2001 From: kirill Date: Wed, 24 Jul 2024 16:45:03 +0300 Subject: [PATCH 1/2] fix: correct type for action --- 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..2dfa79a1 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?: (e: React.MouseEvent) => void; href?: string; target?: '_blank'; }; From e898f978dec20cde8113891cf914014eca637271 Mon Sep 17 00:00:00 2001 From: kirill Date: Wed, 24 Jul 2024 17:00:32 +0300 Subject: [PATCH 2/2] fix: rename e to event --- 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 2dfa79a1..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?: (e: React.MouseEvent) => void; + onClick?: (event: React.MouseEvent) => void; href?: string; target?: '_blank'; };