From 02ccc24d72c2e081498dcb07ef416aa79cd2c45c Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Sat, 8 Jul 2023 12:02:49 +0800 Subject: [PATCH] chore(console): block subscritpion route (#4139) --- packages/console/src/containers/ConsoleContent/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/console/src/containers/ConsoleContent/index.tsx b/packages/console/src/containers/ConsoleContent/index.tsx index 7603a6205..1223b1bc8 100644 --- a/packages/console/src/containers/ConsoleContent/index.tsx +++ b/packages/console/src/containers/ConsoleContent/index.tsx @@ -9,7 +9,7 @@ import { WebhookDetailsTabs, TenantSettingsTabs, } from '@/consts'; -import { isCloud } from '@/consts/env'; +import { isCloud, isProduction } from '@/consts/env'; import OverlayScrollbar from '@/ds-components/OverlayScrollbar'; import ApiResourceDetails from '@/pages/ApiResourceDetails'; import ApiResourcePermissions from '@/pages/ApiResourceDetails/ApiResourcePermissions'; @@ -148,7 +148,9 @@ function ConsoleContent() { } /> } /> } /> - } /> + {!isProduction && ( + } /> + )} )}