Skip to content

Commit

Permalink
refactor: typing for button onclick (#4833)
Browse files Browse the repository at this point in the history
  • Loading branch information
uinstinct authored Nov 19, 2024
1 parent 9b21af7 commit 1021d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/web/components/base/forms/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const Button: FC<ButtonType> = ({
const hasPlan = feature ? Utils.getPlansPermission(feature) : true
return href || !hasPlan ? (
<a
onClick={rest.onClick}
onClick={rest.onClick as React.MouseEventHandler}
className={cn(className, themeClassNames[theme], sizeClassNames[size])}
target={target}
href={hasPlan ? href : Constants.getUpgradeUrl()}
Expand Down

0 comments on commit 1021d12

Please sign in to comment.