This commit is contained in:
Michał Leszczyk 2022-05-25 13:46:38 +02:00
parent 52db6b96df
commit 583575f5ea
No known key found for this signature in database
GPG Key ID: FA123CA8BAA2FBF4
1 changed files with 10 additions and 6 deletions

View File

@ -162,9 +162,11 @@ const PlansSlider = () => {
<div className="text-center my-6">
{(!hasActivePlan || isHigherThanCurrent) &&
(isCurrentPlanPaid ? (
<Button $primary as="a" href="/api/stripe/billing">
Upgrade
</Button>
<form method="post" action="/api/stripe/billing">
<Button type="submit">
Upgrade
</Button>
</form>
) : (
<Button $primary onClick={() => handleSubscribe(plan)}>
Upgrade
@ -172,9 +174,11 @@ const PlansSlider = () => {
))}
{isCurrent && <Button disabled>Current</Button>}
{isLower && (
<Button as="a" href="/api/stripe/billing">
Choose
</Button>
<form method="post" action="/api/stripe/billing">
<Button type="submit">
Choose
</Button>
</form>
)}
</div>
{plan.limits && (