From c1c6ac41e0cc974977bb9ea40bfae1967f7b77ae Mon Sep 17 00:00:00 2001 From: Anton Kastritskiy Date: Tue, 18 Jul 2023 03:52:34 -0700 Subject: [PATCH] fps graph + network graph Reviewed By: LukeDefeo Differential Revision: D47436168 fbshipit-source-id: 02faf84b513ed724bd4e3b5ebd606758301392d5 --- desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx | 9 --------- desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx | 11 ++++++++++- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx b/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx index 3d3c6febd..93cf28dd4 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/LeftRail.tsx @@ -38,9 +38,6 @@ import {setStaticView} from '../reducers/connections'; import {SandyRatingButton} from '../chrome/RatingButton'; import {filterNotifications} from './notification/notificationUtils'; import {useMemoize} from 'flipper-plugin'; -import isProduction from '../utils/isProduction'; -import NetworkGraph from '../chrome/NetworkGraph'; -import FpsGraph from '../chrome/FpsGraph'; import UpdateIndicator from '../chrome/UpdateIndicator'; import constants from '../fb-stubs/constants'; import { @@ -173,12 +170,6 @@ export const LeftRail = withTrackingScope(function LeftRail({ /> - {!isProduction() && ( -
- - -
- )} diff --git a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx index 3ac7a48fd..9099dd2e3 100644 --- a/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx +++ b/desktop/flipper-ui-core/src/sandy-chrome/Navbar.tsx @@ -32,6 +32,9 @@ import {toggleLeftSidebarVisible} from '../reducers/application'; import PluginManager from '../chrome/plugin-manager/PluginManager'; import {showEmulatorLauncher} from './appinspect/LaunchEmulator'; import SetupDoctorScreen, {checkHasNewProblem} from './SetupDoctorScreen'; +import {isProduction} from 'flipper-common'; +import FpsGraph from '../chrome/FpsGraph'; +import NetworkGraph from '../chrome/NetworkGraph'; export function Navbar() { return ( @@ -51,6 +54,12 @@ export function Navbar() { + {!isProduction() && ( +
+ + +
+ )} void; toggled?: boolean; - /** red bubble in top right corner, notification like */ + /** TODO red bubble in top right corner, notification like */ count?: number | true; }) { const color = toggled ? theme.primaryColor : theme.textColorActive;