mirror of
https://github.com/logto-io/logto.git
synced 2025-03-24 22:41:28 -05:00
chore: launch au region (#6701)
This commit is contained in:
parent
2760eda3d6
commit
aab356d7ed
1 changed files with 12 additions and 16 deletions
|
@ -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 } }) => (
|
||||
<RadioGroup type="small" name={name} value={value} onChange={onChange}>
|
||||
{/* 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) && (
|
||||
<Radio
|
||||
key={region}
|
||||
title={
|
||||
<DangerousRaw>
|
||||
<Region regionName={region} />
|
||||
</DangerousRaw>
|
||||
}
|
||||
value={region}
|
||||
isDisabled={isSubmitting}
|
||||
/>
|
||||
)
|
||||
)}
|
||||
{[RegionName.EU, RegionName.US, RegionName.AU].map((region) => (
|
||||
<Radio
|
||||
key={region}
|
||||
title={
|
||||
<DangerousRaw>
|
||||
<Region regionName={region} />
|
||||
</DangerousRaw>
|
||||
}
|
||||
value={region}
|
||||
isDisabled={isSubmitting}
|
||||
/>
|
||||
))}
|
||||
</RadioGroup>
|
||||
)}
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue