Update UI styling and fix bug in tier limits

Modified styles in radio-group, line-item-details and plan-picker components for improved user interface consistency. Specifically, certain font weights and transitions were adjusted, and some CSS classes were changed. Additionally, a bug in line-item-details was fixed where the 'unlimited' value wasn't properly returned for the previous tier's limit.
This commit is contained in:
giancarlo
2024-04-06 12:37:44 +08:00
parent a1d86d2b7d
commit 7112560efe
3 changed files with 14 additions and 7 deletions

View File

@@ -165,11 +165,11 @@ function Tiers({
const isNoLimit = tier.upTo === 'unlimited';
const previousTierFrom =
tier.upTo === 'unlimited'
previousTier?.upTo === 'unlimited'
? 'unlimited'
: previousTier === undefined
? 0
: (previousTier?.upTo as number) + 1 || 0;
: previousTier.upTo + 1 || 0;
const upTo = tier.upTo;
const isIncluded = tier.cost === 0;