0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-04-07 23:01:25 -05:00

refactor(console): support multi-region for paid plans

This commit is contained in:
Gao Sun 2024-05-28 19:04:18 +08:00
parent 06ac416750
commit b10e138f87
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
2 changed files with 3 additions and 2 deletions
packages/console/src
components/CreateTenantModal/SelectTenantPlanModal
hooks

View file

@ -41,8 +41,8 @@ function SelectTenantPlanModal({ tenantData, onClose }: Props) {
const { id: planId } = plan;
try {
if (planId === ReservedPlanId.Free) {
const { name, tag } = tenantData;
const newTenant = await cloudApi.post('/api/tenants', { body: { name, tag } });
const { name, tag, regionName } = tenantData;
const newTenant = await cloudApi.post('/api/tenants', { body: { name, tag, regionName } });
reportToGoogle(GtagConversionId.CreateProductionTenant, { transactionId: newTenant.id });
onClose(newTenant);

View file

@ -59,6 +59,7 @@ const useSubscribe = () => {
tenantId,
tenantName: tenantData?.name,
tenantTag: tenantData?.tag,
tenantRegionName: tenantData?.regionName,
},
});