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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
795d02d00c
commit
c091067902
25
desktop/patches/rc-tabs+12.5.10.patch
Normal file
25
desktop/patches/rc-tabs+12.5.10.patch
Normal 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 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();
|
||||
Reference in New Issue
Block a user