Skip to content

Commit 64e8912

Browse files
committed
common/Button: allow sometimes passing mouse event
1 parent c09c1d8 commit 64e8912

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/common/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface ButtonProps extends React.HTMLAttributes<HTMLElement> {
8080
/**
8181
* If using a native button, specifies on an onClick action
8282
*/
83-
onClick?: () => void;
83+
onClick?: (evt: React.MouseEvent<HTMLButtonElement>) => void;
8484
/**
8585
* If using a button, then type is defines the type of button
8686
*/

client/modules/User/components/AccountForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function AccountForm() {
107107
</span>
108108
) : (
109109
<Button
110-
onClick={() => handleInitiateVerification}
110+
onClick={handleInitiateVerification}
111111
className="form__resend-button"
112112
>
113113
{t('AccountForm.Resend')}

0 commit comments

Comments
 (0)