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
26 lines
693 B
Diff
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) {
|