Files
flipper/desktop/patches/rc-tabs+11.7.2.patch
Michel Weststrate 37a7b16774 Introduce Tabs
Summary:
Ant'd tabs didn't allow for vertical fill out. Introduced our own tiny wrapper that has `grow` by default.

Also made sure the users last selection is remembered.

Reviewed By: cekkaewnumchai

Differential Revision: D28026345

fbshipit-source-id: 7703bc241cd1427336b7c917bdb5be9f56bba9b9
2021-04-27 08:13:16 -07:00

26 lines
693 B
Diff

diff --git a/node_modules/rc-tabs/es/TabNavList/TabNode.js b/node_modules/rc-tabs/es/TabNavList/TabNode.js
index ac93b76..edae9be 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) {