Update button text and styles for yearly subscription upgrades in pricing section

This commit is contained in:
mykonos-ibiza 2025-07-31 15:57:11 +05:30
parent a7b142ed74
commit 2eea1f07aa
1 changed files with 3 additions and 3 deletions

View File

@ -408,9 +408,9 @@ function PricingTier({
if (targetAmount > currentAmount || isSameTierUpgradeToLongerTerm) {
// Allow upgrade to higher tier OR upgrade to longer term on same tier
if (currentIsMonthly && targetIsYearlyCommitment && targetAmount <= currentAmount) {
buttonText = 'Subscribe for one year';
buttonVariant = 'default';
buttonClassName = 'bg-green-600 hover:bg-green-700 text-white';
buttonText = 'Upgrade';
buttonVariant = tier.buttonColor as ButtonVariant;
buttonClassName = 'bg-primary hover:bg-primary/90 text-primary-foreground';
} else if (currentIsMonthly && targetIsYearly && targetAmount <= currentAmount) {
buttonText = 'Switch to Legacy Yearly';
buttonVariant = 'default';