From 06df010202fffc92560898866e2728db69541094 Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Thu, 14 Sep 2023 14:04:25 +0800 Subject: [PATCH] fix(console): hide mfa menu item before the feature is ready (#4499) --- .../console/src/containers/ConsoleContent/Sidebar/hook.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/console/src/containers/ConsoleContent/Sidebar/hook.tsx b/packages/console/src/containers/ConsoleContent/Sidebar/hook.tsx index 5293a2bb8..ea32dac1d 100644 --- a/packages/console/src/containers/ConsoleContent/Sidebar/hook.tsx +++ b/packages/console/src/containers/ConsoleContent/Sidebar/hook.tsx @@ -14,7 +14,7 @@ import ResourceIcon from '@/assets/icons/resource.svg'; import Role from '@/assets/icons/role.svg'; import SecurityLock from '@/assets/icons/security-lock.svg'; import Web from '@/assets/icons/web.svg'; -import { isCloud } from '@/consts/env'; +import { isCloud, isProduction } from '@/consts/env'; import useUserPreferences from '@/hooks/use-user-preferences'; type SidebarItem = { @@ -82,6 +82,7 @@ export const useSidebarMenuItems = (): { { Icon: SecurityLock, title: 'mfa', + isHidden: isProduction, }, { Icon: Connection,