Skip to content

Commit 5498984

Browse files
committed
Fix callback
1 parent f3f50f6 commit 5498984

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.1.29",
3+
"version": "0.1.30",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Button/Button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const MenuButton = ({
6363
isLabel={false}
6464
title={title}
6565
id={id}
66-
onClick={() => onClick()}
66+
onClick={(e:any) => onClick(e)}
6767
>
6868
{children}
6969
</Button>
@@ -89,7 +89,7 @@ export const MenuButtonStroke = ({
8989
isLabel={false}
9090
title={title}
9191
id={id}
92-
onClick={() => onClick()}
92+
onClick={(e:any) => onClick(e)}
9393
>
9494
{children}
9595
</Button>
@@ -115,7 +115,7 @@ export const MenuButtonLabel = ({
115115
isLabel={true}
116116
title={title}
117117
id={id}
118-
onClick={() => onClick()}
118+
onClick={(e:any) => onClick(e)}
119119
>
120120
{children}
121121
</Button>

0 commit comments

Comments
 (0)