From a61cf82f98496432c0949f8e543cf8bea7647eff Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Mon, 21 Oct 2024 15:05:29 +0800 Subject: [PATCH] chore: launch au region (#6701) --- .../components/CreateTenantModal/index.tsx | 28 ++++++++----------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/packages/console/src/components/CreateTenantModal/index.tsx b/packages/console/src/components/CreateTenantModal/index.tsx index 2f40cb0cd7e..db7b7fedfc5 100644 --- a/packages/console/src/components/CreateTenantModal/index.tsx +++ b/packages/console/src/components/CreateTenantModal/index.tsx @@ -10,7 +10,6 @@ import CreateTenantHeaderIcon from '@/assets/icons/create-tenant-header.svg?reac import { useCloudApi } from '@/cloud/hooks/use-cloud-api'; import { type TenantResponse } from '@/cloud/types/router'; import Region, { RegionName } from '@/components/Region'; -import { isDevFeaturesEnabled } from '@/consts/env'; import Button from '@/ds-components/Button'; import DangerousRaw from '@/ds-components/DangerousRaw'; import FormField from '@/ds-components/FormField'; @@ -126,21 +125,18 @@ function CreateTenantModal({ isOpen, onClose }: Props) { render={({ field: { onChange, value, name } }) => ( {/* Manually maintaining the list of regions to avoid unexpected changes. We may consider using an API in the future. */} - {[RegionName.EU, RegionName.US, RegionName.AU].map( - (region) => - (isDevFeaturesEnabled || region !== RegionName.AU) && ( - - - - } - value={region} - isDisabled={isSubmitting} - /> - ) - )} + {[RegionName.EU, RegionName.US, RegionName.AU].map((region) => ( + + + + } + value={region} + isDisabled={isSubmitting} + /> + ))} )} />