Optimize academy

This commit is contained in:
2026-06-09 13:16:01 +02:00
parent f89ee937c0
commit 5af95f6533
109 changed files with 6862 additions and 719 deletions

View File

@@ -25,7 +25,7 @@ export default function PlanCard({ product, selectedPlan, currentTier, isSubscri
const isActivePlan = selectedPlan?.key === activePlanKey
// Pro subscribers already have creator access — don't show a separate "switch" CTA for creator card
const isHigherTierCovered = activeTier === 'pro' && product.tier === 'creator'
const isPlanReady = Boolean(selectedPlan?.configured && selectedPlan?.price_id_valid)
const isPlanReady = Boolean(selectedPlan?.configured && selectedPlan?.price_id_valid && selectedPlan?.remote_price_exists !== false)
// User has a different active subscription (not this plan)
const isSubscribedElsewhere = isSubscribed && !isActivePlan
@@ -96,10 +96,10 @@ export default function PlanCard({ product, selectedPlan, currentTier, isSubscri
onClick={() => onCheckout(selectedPlan)}
tone="primary"
>
{!billingEnabled ? 'Coming soon' : isPlanReady ? `Get ${product.name}${selectedPlan?.price_display || ''}` : 'Not available yet'}
{!billingEnabled ? 'Coming soon' : isPlanReady ? `Get ${product.name}${selectedPlan?.price_display || ''}` : 'Not available yet'}
</ActionButton>
) : null}
</div>
</article>
)
}
}