From 84bad161adee3fa5fdd6af17729ba4141bbaaa7d Mon Sep 17 00:00:00 2001 From: Guo Yunhe Date: Mon, 8 Apr 2024 10:40:39 +0800 Subject: [PATCH] fix(Button): onClick type (#6588) --- src/components/button/button.tsx | 2 +- src/components/result-page/result-page.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/button/button.tsx b/src/components/button/button.tsx index 666c0026ab..04dfb5555c 100644 --- a/src/components/button/button.tsx +++ b/src/components/button/button.tsx @@ -29,7 +29,7 @@ export type ButtonProps = { disabled?: boolean onClick?: ( event: React.MouseEvent - ) => void | Promise | unknown + ) => void | Promise type?: 'submit' | 'reset' | 'button' shape?: 'default' | 'rounded' | 'rectangular' children?: ReactNode diff --git a/src/components/result-page/result-page.tsx b/src/components/result-page/result-page.tsx index d896da6c65..34b8e4a703 100644 --- a/src/components/result-page/result-page.tsx +++ b/src/components/result-page/result-page.tsx @@ -34,7 +34,7 @@ type ResultPageDetails = ResultPageDetail[] type OnClick = ( event: React.MouseEvent -) => void | Promise | unknown +) => void | Promise export type ResultPageProps = { status?: 'success' | 'error' | 'info' | 'waiting' | 'warning'