diff --git a/web/src/app/ee/admin/plan/BillingSettings.tsx b/web/src/app/ee/admin/plan/BillingSettings.tsx index 76498ced2..a6d529d0d 100644 --- a/web/src/app/ee/admin/plan/BillingSettings.tsx +++ b/web/src/app/ee/admin/plan/BillingSettings.tsx @@ -1,27 +1,14 @@ "use client"; -import { useRouter } from "next/navigation"; import { BillingPlanType } from "@/app/admin/settings/interfaces"; import { useContext, useState } from "react"; import { SettingsContext } from "@/components/settings/SettingsProvider"; -import { Form, Formik } from "formik"; -import * as Yup from "yup"; -import { - Label, - SubLabel, - TextFormField, -} from "@/components/admin/connectors/Field"; import { Button, Divider, Text, Card } from "@tremor/react"; -import Link from "next/link"; import { StripeCheckoutButton } from "./StripeCheckoutButton"; import { CheckmarkIcon, XIcon } from "@/components/icons/icons"; import { FiAward, FiDollarSign, FiStar } from "react-icons/fi"; -// import { StripeCheckoutButton } from "@/components/StripeButton"; export function BillingSettings() { - const router = useRouter(); - const [showAdvancedOptions, setShowAdvancedOptions] = useState(false); - const settings = useContext(SettingsContext); const cloudSettings = settings?.cloudSettings; @@ -259,31 +246,32 @@ export function BillingSettings() {

- Tenant Merging + Tenant Deletion

- Merge your tenant with another to consolidate resources and users. + Permanently delete your tenant and all associated data.

Warning:

-

Merging tenants will result in the following:

+

Deleting your tenant will result in the following:

    -
  • Data from the other tenant will be abandoned
  • - Billing for the merged tenant will transfer to this account + All data associated with this tenant will be permanently + deleted
  • +
  • This action cannot be undone
diff --git a/web/src/app/ee/admin/plan/StripeCheckoutButton.tsx b/web/src/app/ee/admin/plan/StripeCheckoutButton.tsx index 90f10d384..2f0a54248 100644 --- a/web/src/app/ee/admin/plan/StripeCheckoutButton.tsx +++ b/web/src/app/ee/admin/plan/StripeCheckoutButton.tsx @@ -28,7 +28,7 @@ export function StripeCheckoutButton({ headers: { "Content-Type": "application/json", }, - body: JSON.stringify({ newQuantity, newPlan }), + body: JSON.stringify({ quantity: newQuantity, plan: newPlan }), }); if (!response.ok) { @@ -71,10 +71,12 @@ export function StripeCheckoutButton({ : newPlan > currentPlan || (newPlan === currentPlan && newQuantity > currentQuantity) ? "Upgrade Plan" - : newPlan < currentPlan || - (newPlan === currentPlan && newQuantity < currentQuantity) - ? "Downgrade Plan" - : "Change Plan"} + : newPlan == BillingPlanType.ENTERPRISE + ? "Talk to us" + : // : newPlan < currentPlan || + newPlan === currentPlan && newQuantity < currentQuantity + ? "Upgrade Plan" + : "Change Plan"} ); }