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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user