wip
This commit is contained in:
parent
52db6b96df
commit
583575f5ea
|
@ -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 && (
|
||||||
|
|
Reference in New Issue