-
Notifications
You must be signed in to change notification settings - Fork 964
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
6 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 1 addition & 13 deletions
14
apps/web/app/(app)/environments/[environmentId]/settings/billing/page.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
import { authOptions } from "@/app/api/auth/[...nextauth]/authOptions"; | ||
import { Button } from "@formbricks/ui"; | ||
import { getServerSession } from "next-auth"; | ||
import SettingsCard from "../SettingsCard"; | ||
import SettingsTitle from "../SettingsTitle"; | ||
import PricingTable from "./PricingTable"; | ||
|
||
const proPlan = false; | ||
|
||
export default async function ProfileSettingsPage({ params }) { | ||
const session = await getServerSession(authOptions); | ||
return ( | ||
<div> | ||
<SettingsTitle title="Billing & Plan" /> | ||
{proPlan ? ( | ||
<SettingsCard | ||
title="Manage subscription" | ||
description="View, update and cancel your subscription in the billing portal."> | ||
<Button variant="darkCTA">Billing Portal</Button> | ||
</SettingsCard> | ||
) : ( | ||
<PricingTable environmentId={params.environmentId} session={session} /> | ||
)} | ||
<PricingTable environmentId={params.environmentId} session={session} /> | ||
</div> | ||
); | ||
} |
7475df1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
formbricks-com – ./apps/formbricks-com
formbricks-com-formbricks.vercel.app
formbricks-com-git-main-formbricks.vercel.app
formbricks-com.vercel.app
formbricks.com
www.formbricks.com
7475df1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
formbricks-cloud – ./apps/web
formbricks-cloud.vercel.app
formbricks-cloud-formbricks.vercel.app
formbricks-cloud-git-main-formbricks.vercel.app
app.formbricks.com