Summary: Project doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU Required to get `Space.Compact` allow-large-files Reviewed By: passy Differential Revision: D48520383 fbshipit-source-id: 000a5c16c00541455dc4a31c4fddb2c4c252a89e
26 lines
794 B
Diff
26 lines
794 B
Diff
diff --git a/node_modules/rc-tabs/es/TabNavList/TabNode.js b/node_modules/rc-tabs/es/TabNavList/TabNode.js
|
|
index b655b3d..783f686 100644
|
|
--- a/node_modules/rc-tabs/es/TabNavList/TabNode.js
|
|
+++ b/node_modules/rc-tabs/es/TabNavList/TabNode.js
|
|
@@ -22,11 +22,19 @@ function TabNode(_ref) {
|
|
style = _ref.style;
|
|
var tabPrefix = "".concat(prefixCls, "-tab");
|
|
var removable = editable && closable !== false && !disabled;
|
|
+ var scope = React.useContext(global.FlipperTrackingScopeContext);
|
|
function onInternalClick(e) {
|
|
if (disabled) {
|
|
return;
|
|
}
|
|
- onClick(e);
|
|
+ global.flipperTrackInteraction(
|
|
+ 'Tabs',
|
|
+ 'onTabClick',
|
|
+ scope,
|
|
+ 'tab:' + key,
|
|
+ onClick,
|
|
+ e
|
|
+ );
|
|
}
|
|
function onRemoveTab(event) {
|
|
event.preventDefault();
|