From 38e64156a8b5fe4bee412f7f699570747cff9a93 Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Fri, 1 Sep 2023 04:54:35 -0700 Subject: [PATCH] new antd tabs API Reviewed By: lblasa Differential Revision: D48902684 fbshipit-source-id: 73a7b80b6b223067a7e79d2b6f4cab18943b8214 --- .../src/chrome/TroubleshootingHub.tsx | 44 ++++++++++++------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/desktop/flipper-ui-core/src/chrome/TroubleshootingHub.tsx b/desktop/flipper-ui-core/src/chrome/TroubleshootingHub.tsx index ef25e0079..4334fc3b8 100644 --- a/desktop/flipper-ui-core/src/chrome/TroubleshootingHub.tsx +++ b/desktop/flipper-ui-core/src/chrome/TroubleshootingHub.tsx @@ -9,29 +9,43 @@ import {Layout} from '../ui'; import React from 'react'; -import {Tab, Tabs} from 'flipper-plugin'; +import {Tabs} from 'flipper-plugin'; import SetupDoctorScreen from '../sandy-chrome/SetupDoctorScreen'; import {ConsoleLogs} from './ConsoleLogs'; import {FlipperMessages} from './FlipperMessages'; import {ConnectivityLogs} from './ConnectivityLogs'; export function TroubleshootingHub() { + const items = React.useMemo( + () => [ + { + key: 'environment-check', + label: 'Environment Check', + children: ( + {}} /> + ), + }, + { + key: 'connectivity-logs', + label: 'Connectivity Logs', + children: , + }, + { + key: 'console-logs', + label: 'Console Logs', + children: , + }, + { + key: 'messages', + label: 'Messages', + children: , + }, + ], + [], + ); return ( - - - {}} /> - - - - - - - - - - - + ); }