diff --git a/node_modules/antd/es/button/button.js b/node_modules/antd/es/button/button.js index 7b9490c..99067b6 100644 --- a/node_modules/antd/es/button/button.js +++ b/node_modules/antd/es/button/button.js @@ -189,6 +189,8 @@ var InternalButton = function InternalButton(props, ref) { }, [loadingOrDelay]); React.useEffect(fixTwoCNChar, [buttonRef]); + var scope = React.useContext(global.FlipperTrackingScopeContext); + var handleClick = function handleClick(e) { var onClick = props.onClick; @@ -197,7 +199,11 @@ var InternalButton = function InternalButton(props, ref) { } if (onClick) { - onClick(e); + global.flipperTrackInteraction( + 'Button', 'onClick', scope, props.title || props.children || props.icon, + onClick, + e + ); } };