Skip to content

Commit

Permalink
fix: button onClick prop rewriting
Browse files Browse the repository at this point in the history
  • Loading branch information
avsetsin committed May 20, 2021
1 parent 53cc2d7 commit 7bbd8ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/button/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lidofinance/button",
"version": "1.0.3",
"version": "1.0.4",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/button/src/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function Button(props: ButtonProps, ref?: ForwardedRef<HTMLButtonElement>) {
square = false,
fullwidth = false,
loading = false,
onClick,
disabled,
children,
...rest
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lidofinance/utils",
"version": "1.0.1",
"version": "1.0.2",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions packages/utils/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export type LidoComponentProps<
Omit<
JSX.IntrinsicElements[T] & {
as?: keyof JSX.IntrinsicElements
forwardedAs?: keyof JSX.IntrinsicElements
},
'ref' | keyof Props
>

0 comments on commit 7bbd8ef

Please sign in to comment.