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