Files
flipper/desktop/patches/rc-tabs+12.5.10.patch
Andrey Goncharov c091067902 Update antd
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
2023-08-30 07:26:35 -07:00

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();