fix pricing page docs url

This commit is contained in:
vincanger 2024-09-09 14:13:59 +02:00
parent 48f8c5ce73
commit 702c133aaa
3 changed files with 2 additions and 27 deletions

View File

@ -4,7 +4,7 @@
import { cn } from '../client/cn';
const bestDealPaymentPlanId: PaymentPlanId = PaymentPlanId.Pro;
+const PaymentsDocsURL = 'https://docs.opensaas.sh/payments-integration';
+const PaymentsDocsURL = 'https://docs.opensaas.sh/guides/payments-integration/';
interface PaymentPlanCard {
name: string;

View File

@ -1,22 +0,0 @@
--- template/app/src/user/AccountPage.tsx
+++ opensaas-sh/app/src/user/AccountPage.tsx
@@ -33,7 +33,6 @@
subscriptionPlan={user.subscriptionPlan}
datePaid={user.datePaid}
credits={user.credits}
- lemonSqueezyCustomerPortalUrl={user.lemonSqueezyCustomerPortalUrl}
/>
</div>
<div className='py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6'>
@@ -60,10 +59,9 @@
subscriptionStatus: SubscriptionStatus | null;
datePaid: Date | null;
credits: number;
- lemonSqueezyCustomerPortalUrl: string | null;
};
-function UserCurrentPaymentPlan({ subscriptionPlan, subscriptionStatus, datePaid, credits, lemonSqueezyCustomerPortalUrl }: UserCurrentPaymentPlanProps) {
+function UserCurrentPaymentPlan({ subscriptionPlan, subscriptionStatus, datePaid, credits }: UserCurrentPaymentPlanProps) {
if (subscriptionStatus && subscriptionPlan && datePaid) {
return (
<>

View File

@ -3,7 +3,6 @@ import { type SubscriptionStatus, prettyPaymentPlanName, parsePaymentPlanId } fr
import { getCustomerPortalUrl, useQuery } from 'wasp/client/operations';
import { Link } from 'wasp/client/router';
import { logout } from 'wasp/client/auth';
import { z } from 'zod';
export default function AccountPage({ user }: { user: User }) {
return (
@ -33,7 +32,6 @@ export default function AccountPage({ user }: { user: User }) {
subscriptionPlan={user.subscriptionPlan}
datePaid={user.datePaid}
credits={user.credits}
lemonSqueezyCustomerPortalUrl={user.lemonSqueezyCustomerPortalUrl}
/>
</div>
<div className='py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6'>
@ -60,10 +58,9 @@ type UserCurrentPaymentPlanProps = {
subscriptionStatus: SubscriptionStatus | null;
datePaid: Date | null;
credits: number;
lemonSqueezyCustomerPortalUrl: string | null;
};
function UserCurrentPaymentPlan({ subscriptionPlan, subscriptionStatus, datePaid, credits, lemonSqueezyCustomerPortalUrl }: UserCurrentPaymentPlanProps) {
function UserCurrentPaymentPlan({ subscriptionPlan, subscriptionStatus, datePaid, credits }: UserCurrentPaymentPlanProps) {
if (subscriptionStatus && subscriptionPlan && datePaid) {
return (
<>