From afe16d254cab2c3f3bfa7b97b7c61d9241f09f27 Mon Sep 17 00:00:00 2001 From: Raquel Smith Date: Mon, 5 Feb 2024 11:31:24 -0800 Subject: [PATCH] feat: show the "move to cloud" cta on dev (#20043) show the "move to cloud" cta on dev --- frontend/src/layout/navigation/TopBar/AccountPopover.tsx | 4 ++-- frontend/src/scenes/PreflightCheck/preflightLogic.tsx | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/layout/navigation/TopBar/AccountPopover.tsx b/frontend/src/layout/navigation/TopBar/AccountPopover.tsx index b42cb02e0a690..b668beb05b42d 100644 --- a/frontend/src/layout/navigation/TopBar/AccountPopover.tsx +++ b/frontend/src/layout/navigation/TopBar/AccountPopover.tsx @@ -192,7 +192,7 @@ export function AccountPopoverOverlay(): JSX.Element { const { currentOrganization } = useValues(organizationLogic) const { mobileLayout } = useValues(navigationLogic) const { openSidePanel } = useActions(sidePanelStateLogic) - const { preflight, isCloudOrDev } = useValues(preflightLogic) + const { preflight, isCloudOrDev, isCloud } = useValues(preflightLogic) const { closeAccountPopover } = useActions(navigationLogic) return ( @@ -248,7 +248,7 @@ export function AccountPopoverOverlay(): JSX.Element { {user?.is_staff && } - {!isCloudOrDev && ( + {!isCloud && ( ([ return preflight?.cloud || preflight?.is_debug }, ], + isCloud: [ + (s) => [s.preflight], + (preflight): boolean | undefined => { + return preflight?.cloud + }, + ], isDev: [ (s) => [s.preflight], (preflight): boolean | undefined => {