Skip to content

Commit

Permalink
fix(Button): onClick type
Browse files Browse the repository at this point in the history
  • Loading branch information
guoyunhe committed Apr 6, 2024
1 parent cf550e4 commit 66621f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type ButtonProps = {
disabled?: boolean
onClick?: (
event: React.MouseEvent<HTMLButtonElement, MouseEvent>
) => void | Promise<void> | unknown
) => void | Promise<void>
type?: 'submit' | 'reset' | 'button'
shape?: 'default' | 'rounded' | 'rectangular'
children?: ReactNode
Expand Down

0 comments on commit 66621f8

Please sign in to comment.