diff --git a/starterkits/saas/.env.example b/starterkits/saas/.env.example index 23b40f2..575c006 100644 --- a/starterkits/saas/.env.example +++ b/starterkits/saas/.env.example @@ -38,4 +38,4 @@ UPLOADTHING_ID="" # LemonSqueezy keys LEMONSQUEEZY_API_KEY="" LEMONSQUEEZY_STORE_ID="" - +LEMONSQUEEZY_WEBHOOK_SECRET="" diff --git a/starterkits/saas/src/app/(app)/(user)/org/billing/_constants/page-config.ts b/starterkits/saas/src/app/(app)/(user)/org/billing/_constants/page-config.ts new file mode 100644 index 0000000..b067425 --- /dev/null +++ b/starterkits/saas/src/app/(app)/(user)/org/billing/_constants/page-config.ts @@ -0,0 +1,4 @@ +export const orgBillingPageConfig = { + title: "Billing", + description: "Manage your billing settings and subscription.", +} as const; diff --git a/starterkits/saas/src/app/(app)/(user)/org/billing/loading.tsx b/starterkits/saas/src/app/(app)/(user)/org/billing/loading.tsx new file mode 100644 index 0000000..776835b --- /dev/null +++ b/starterkits/saas/src/app/(app)/(user)/org/billing/loading.tsx @@ -0,0 +1,17 @@ +import { AppPageLoading } from "@/app/(app)/_components/page-loading"; +import { Skeleton } from "@/components/ui/skeleton"; +import { orgBillingPageConfig } from "@/app/(app)/(user)/org/billing/_constants/page-config"; + +export default function OrgBillingLoading() { + return ( + +
+ + +
+
+ ); +} diff --git a/starterkits/saas/src/app/(app)/(user)/org/billing/page.tsx b/starterkits/saas/src/app/(app)/(user)/org/billing/page.tsx index f7b94b3..0e0a19b 100644 --- a/starterkits/saas/src/app/(app)/(user)/org/billing/page.tsx +++ b/starterkits/saas/src/app/(app)/(user)/org/billing/page.tsx @@ -1,5 +1,6 @@ import { AvailablePlans } from "@/app/(app)/(user)/org/billing/_components/available-plans"; import { CurrentPlan } from "@/app/(app)/(user)/org/billing/_components/current-plan"; +import { orgBillingPageConfig } from "@/app/(app)/(user)/org/billing/_constants/page-config"; import { AppPageShell } from "@/app/(app)/_components/page-shell"; import { getOrgSubscription } from "@/server/actions/plans/query"; @@ -8,8 +9,8 @@ export default async function OrgBillingPage() { return (