From 708397361cf4864abd248a668ab10f9080a923df Mon Sep 17 00:00:00 2001 From: Charles Zhao Date: Mon, 22 Jul 2024 17:53:56 +0800 Subject: [PATCH] fix(console): add cloud guard to bring your ui form field --- .../PageContent/Branding/CustomUiForm/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/console/src/pages/SignInExperience/PageContent/Branding/CustomUiForm/index.tsx b/packages/console/src/pages/SignInExperience/PageContent/Branding/CustomUiForm/index.tsx index 68185ef5e..961c40bbf 100644 --- a/packages/console/src/pages/SignInExperience/PageContent/Branding/CustomUiForm/index.tsx +++ b/packages/console/src/pages/SignInExperience/PageContent/Branding/CustomUiForm/index.tsx @@ -5,7 +5,7 @@ import { Trans, useTranslation } from 'react-i18next'; import CustomUiAssetsUploader from '@/components/CustomUiAssetsUploader'; import InlineUpsell from '@/components/InlineUpsell'; -import { isDevFeaturesEnabled } from '@/consts/env'; +import { isDevFeaturesEnabled, isCloud } from '@/consts/env'; import { SubscriptionDataContext } from '@/contexts/SubscriptionDataProvider'; import Card from '@/ds-components/Card'; import CodeEditor from '@/ds-components/CodeEditor'; @@ -67,7 +67,7 @@ function CustomUiForm() { )} /> - {isDevFeaturesEnabled && ( + {isDevFeaturesEnabled && isCloud && (