0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

fix: use correct disabled logic for free plan (#5964)

fix: use correct disable logic for free plan
This commit is contained in:
Gao Sun 2024-06-01 13:51:58 +08:00 committed by GitHub
parent 61da265048
commit a72b71516b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,11 +85,11 @@ function PlanCardItem({ plan, onSelect, buttonProps }: Props) {
<Trans components={{ name: <PlanName name={planName} /> }}>{t('select_plan')}</Trans>
</DangerousRaw>
}
disabled={isFreePlan && isFreeTenantExceeded}
type={isFreePlan ? 'outline' : 'primary'}
size="large"
onClick={onSelect}
{...buttonProps}
disabled={(isFreePlan && isFreeTenantExceeded) || buttonProps?.disabled}
/>
</div>
{planId === ReservedPlanId.Hobby && (