From a72b71516b6e65ce61a3f1014fec0a5aa65d05f9 Mon Sep 17 00:00:00 2001 From: Gao Sun Date: Sat, 1 Jun 2024 13:51:58 +0800 Subject: [PATCH] fix: use correct `disabled` logic for free plan (#5964) fix: use correct disable logic for free plan --- .../SelectTenantPlanModal/PlanCardItem/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx b/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx index e9598859e..1083298ea 100644 --- a/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx +++ b/packages/console/src/components/CreateTenantModal/SelectTenantPlanModal/PlanCardItem/index.tsx @@ -85,11 +85,11 @@ function PlanCardItem({ plan, onSelect, buttonProps }: Props) { }}>{t('select_plan')} } - disabled={isFreePlan && isFreeTenantExceeded} type={isFreePlan ? 'outline' : 'primary'} size="large" onClick={onSelect} {...buttonProps} + disabled={(isFreePlan && isFreeTenantExceeded) || buttonProps?.disabled} /> {planId === ReservedPlanId.Hobby && (