@@ -286,22 +275,6 @@ function ExtrasMenu() {
);
}
-function ConnectionTroubleshootButton({
- toplevelSelection,
- setToplevelSelection,
-}: ToplevelProps) {
- return (
- }
- title="Connection Troubleshoot"
- selected={toplevelSelection === 'connectivity'}
- onClick={() => {
- setToplevelSelection('connectivity');
- }}
- />
- );
-}
-
function ExportEverythingEverywhereAllAtOnceStatusModal({
status,
setStatus,
diff --git a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
index f9a4c61e5..3b31cecaa 100644
--- a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
+++ b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx
@@ -16,6 +16,7 @@ import {
useValue,
withTrackingScope,
} from 'flipper-plugin';
+import {getRenderHostInstance} from 'flipper-frontend-core';
import React, {cloneElement, useCallback, useMemo, useState} from 'react';
import {useDispatch, useStore} from '../utils/useStore';
import config from '../fb-stubs/config';
@@ -23,6 +24,7 @@ import {isConnected, currentUser, logoutUser} from '../fb-stubs/user';
import {showLoginDialog} from '../chrome/fb-stubs/SignInSheet';
import {Avatar, Badge, Button, Popover, Tooltip} from 'antd';
import {
+ ApiOutlined,
AppstoreAddOutlined,
BellOutlined,
CameraOutlined,
@@ -72,6 +74,12 @@ export const Navbar = withTrackingScope(function Navbar({
+ {getRenderHostInstance().GK('flipper_connection_troubleshoot') && (
+
+ )}
{!isProduction() && (
@@ -105,6 +113,22 @@ export const Navbar = withTrackingScope(function Navbar({
);
});
+function ConnectionTroubleshootButton({
+ toplevelSelection,
+ setToplevelSelection,
+}: ToplevelProps) {
+ return (
+ {
+ setToplevelSelection('connectivity');
+ }}
+ />
+ );
+}
+
function NotificationButton({
toplevelSelection,
setToplevelSelection,