Skip to content

Commit f3f50f6

Browse files
committed
Add event in button
1 parent c25eceb commit f3f50f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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.28",
3+
"version": "0.1.29",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/Button/Button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const Button = ({
3535
title={title}
3636
id={id}
3737
active={active}
38-
onClick={() => onClick()}
38+
onClick={(e:any) => onClick(e)}
3939
>
4040
{children}
4141
</StyledButton>

0 commit comments

Comments
 (0)