0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(console): hide mfa menu item before the feature is ready (#4499)

This commit is contained in:
Xiao Yijun 2023-09-14 14:04:25 +08:00 committed by GitHub
parent 545b919074
commit 06df010202
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ import ResourceIcon from '@/assets/icons/resource.svg';
import Role from '@/assets/icons/role.svg'; import Role from '@/assets/icons/role.svg';
import SecurityLock from '@/assets/icons/security-lock.svg'; import SecurityLock from '@/assets/icons/security-lock.svg';
import Web from '@/assets/icons/web.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'; import useUserPreferences from '@/hooks/use-user-preferences';
type SidebarItem = { type SidebarItem = {
@ -82,6 +82,7 @@ export const useSidebarMenuItems = (): {
{ {
Icon: SecurityLock, Icon: SecurityLock,
title: 'mfa', title: 'mfa',
isHidden: isProduction,
}, },
{ {
Icon: Connection, Icon: Connection,