Package patches updated to get rid of warnings

Summary: `patch-package antd metro metro-runtime rc-tabs`

Reviewed By: timur-valiev

Differential Revision: D33059716

fbshipit-source-id: c176a0ecbb61f17ddcb73f6162faf8c182b3feaf
This commit is contained in:
Anton Nikolaev
2021-12-14 01:09:47 -08:00
committed by Facebook GitHub Bot
parent 5ce5d897c8
commit ef74d01b11
4 changed files with 2 additions and 2 deletions

View File

@@ -0,0 +1,25 @@
diff --git a/node_modules/rc-tabs/es/TabNavList/TabNode.js b/node_modules/rc-tabs/es/TabNavList/TabNode.js
index 092d6cc..0f4ea8c 100644
--- a/node_modules/rc-tabs/es/TabNavList/TabNode.js
+++ b/node_modules/rc-tabs/es/TabNavList/TabNode.js
@@ -37,10 +37,19 @@ function TabNode(_ref, ref) {
}
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) {