File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
components/Buttons/Button Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -41,18 +41,10 @@ type ButtonProps = {
41
41
* Helps track in-page `event` interactions.
42
42
*/
43
43
analyticsObject ?: GoogleAnalyticsEventPropType ;
44
- /**
45
- * Element used as the button label.
46
- */
47
- children : React . ReactNode | string ;
48
44
/**
49
45
* Forces the component's width as wide as its parent container's width.
50
46
*/
51
47
fullWidth ?: boolean ;
52
- /**
53
- * Function to be called when button is clicked.
54
- */
55
- onClick ?: ( ) => void | undefined ;
56
48
/**
57
49
* Sets the button color theme.
58
50
*/
@@ -90,9 +82,9 @@ export default function Button({
90
82
} ) }
91
83
data-testid = { BUTTON }
92
84
disabled = { disabled }
93
- onClick = { ( ) => {
85
+ onClick = { e => {
94
86
gtag . event ( eventConfig ) ;
95
- onClick ( ) ;
87
+ onClick ( e ) ;
96
88
} }
97
89
tabIndex = { tabIndex }
98
90
type = { type }
You can’t perform that action at this time.
0 commit comments