Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
add starter and fix button
Marc Seitz17e01f85f381
diff --git a/app/api/cron/upgrade/route.ts b/app/api/cron/upgrade/route.tsindex d0bf4ede..13f05085 100644--- a/app/api/cron/upgrade/route.ts+++ b/app/api/cron/upgrade/route.ts@@ -31,7 +31,7 @@ export async function POST(req: Request) {where: {plan: {// exclude users who are on pro or free plan- notIn: ["pro", "free"],+ notIn: ["pro", "starter", "free"],},},select: {diff --git a/lib/swr/use-billing.ts b/lib/swr/use-billing.tsindex 5e8e5e0d..89b41fc1 100644--- a/lib/swr/use-billing.ts+++ b/lib/swr/use-billing.ts@@ -34,7 +34,7 @@ export function useBilling() {}interface PlanResponse {- plan: "free" | "pro" | "trial";+ plan: "free" | "starter" | "pro" | "trial";}export function usePlan() {diff --git a/pages/settings/billing.tsx b/pages/settings/billing.tsxindex 124ba9c9..7e2714fc 100644--- a/pages/settings/billing.tsx+++ b/pages/settings/billing.tsx@@ -208,7 +208,13 @@ export default function Billing() {</Button>) : (<UpgradePlanModal clickedPlan="Starter">- <Button type="button">Upgrade to Starter</Button>+ <Button+ type="button"+ variant="outline"+ className="border border-gray-700 dark:bg-secondary hover:dark:border-gray-500 hover:dark:bg-gray-700"+ >+ Upgrade to Starter+ </Button></UpgradePlanModal>)) : (