mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-09-23 18:43:18 +08:00
chore: minor subscription change
This commit is contained in:
@ -36,15 +36,15 @@ const SettingView = () => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{hasFeature("account") && (
|
{hasFeature("payment") && (
|
||||||
<div className="w-full border border-gray-200 dark:border-zinc-700 p-4 rounded-lg space-y-2">
|
<div className="w-full border border-gray-200 dark:border-zinc-700 p-4 rounded-lg space-y-2">
|
||||||
<AccountView />
|
<PricingView />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{hasFeature("payment") && session?.user?.subscription.plan != "PRO" && (
|
{hasFeature("account") && (
|
||||||
<div className="w-full border border-gray-200 dark:border-zinc-700 p-4 rounded-lg space-y-2">
|
<div className="w-full border border-gray-200 dark:border-zinc-700 p-4 rounded-lg space-y-2">
|
||||||
<PricingView />
|
<AccountView />
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
|
|||||||
metadata: {
|
metadata: {
|
||||||
email: session?.user?.email!,
|
email: session?.user?.email!,
|
||||||
plan: "PRO",
|
plan: "PRO",
|
||||||
description: "Pro 1 Year License (Early Bird)",
|
description: "Pro 1 Year (Early Bird)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Link customer if present otherwise pass email and let Stripe create a new customer.
|
// Link customer if present otherwise pass email and let Stripe create a new customer.
|
||||||
|
Reference in New Issue
Block a user