- {section.features.map((feature, featureIdx) => (
+ {section.features.map((feature) => (
diff --git a/apps/web/core/components/workspace/billing/comparison/plan-detail.tsx b/apps/web/core/components/workspace/billing/comparison/plan-detail.tsx
index 27d2b8cf1..b43ac1da1 100644
--- a/apps/web/core/components/workspace/billing/comparison/plan-detail.tsx
+++ b/apps/web/core/components/workspace/billing/comparison/plan-detail.tsx
@@ -6,12 +6,7 @@
import { observer } from "mobx-react";
// plane imports
-import {
- SUBSCRIPTION_REDIRECTION_URLS,
- SUBSCRIPTION_WITH_BILLING_FREQUENCY,
- TALK_TO_SALES_URL,
-} from "@plane/constants";
-import { useTranslation } from "@plane/i18n";
+import { SUBSCRIPTION_WITH_BILLING_FREQUENCY } from "@plane/constants";
import { Button } from "@plane/propel/button";
import type { TBillingFrequency } from "@plane/types";
import { EProductSubscriptionEnum } from "@plane/types";
@@ -31,27 +26,23 @@ type TPlanDetailProps = {
export const PlanDetail = observer(function PlanDetail(props: TPlanDetailProps) {
const { subscriptionType, planDetail, billingFrequency, setBillingFrequency } = props;
- // plane hooks
- const { t } = useTranslation();
// subscription details
const subscriptionName = getSubscriptionName(subscriptionType);
const isSubscriptionActive = planDetail.isActive;
// pricing details
+ const isEnterprise = subscriptionType === EProductSubscriptionEnum.ENTERPRISE;
const displayPrice = billingFrequency === "month" ? planDetail.monthlyPrice : planDetail.yearlyPrice;
- const pricingDescription = isSubscriptionActive ? "a user per month" : "Quote on request";
- const pricingSecondaryDescription =
- billingFrequency === "month"
+ const pricingDescription = isEnterprise
+ ? "Active Lifetime License"
+ : isSubscriptionActive
+ ? "a user per month"
+ : "Quote on request";
+ const pricingSecondaryDescription = isEnterprise
+ ? "All features unlocked"
+ : billingFrequency === "month"
? planDetail.monthlyPriceSecondaryDescription
: planDetail.yearlyPriceSecondaryDescription;
- const handleRedirection = () => {
- const frequency = billingFrequency ?? "year";
- // Get the redirection URL based on the subscription type and billing frequency
- const redirectUrl = SUBSCRIPTION_REDIRECTION_URLS[subscriptionType][frequency] ?? TALK_TO_SALES_URL;
- // Open the URL in a new tab
- window.open(redirectUrl, "_blank");
- };
-
return (
{/* Plan name and pricing section */}
@@ -100,9 +91,15 @@ export const PlanDetail = observer(function PlanDetail(props: TPlanDetailProps)
{/* Subscription button */}
-
+ {isEnterprise ? (
+
+ ) : (
+
+ )}
);
diff --git a/apps/web/core/components/workspace/billing/comparison/plans.tsx b/apps/web/core/components/workspace/billing/comparison/plans.tsx
index 3273aff2d..7590a0cf1 100644
--- a/apps/web/core/components/workspace/billing/comparison/plans.tsx
+++ b/apps/web/core/components/workspace/billing/comparison/plans.tsx
@@ -1294,10 +1294,10 @@ export const PLANE_PLANS: PlanePlans = {
enterprise: {
id: EProductSubscriptionEnum.ENTERPRISE,
name: "Enterprise",
- monthlyPriceSecondaryDescription: "billed monthly",
- yearlyPriceSecondaryDescription: "billed yearly",
- buttonCTA: "Talk to Sales",
- isActive: false,
+ monthlyPriceSecondaryDescription: "Active Plan",
+ yearlyPriceSecondaryDescription: "Active Plan",
+ buttonCTA: "Active Plan",
+ isActive: true,
},
},
planHighlights: {
diff --git a/apps/web/core/components/workspace/billing/root.tsx b/apps/web/core/components/workspace/billing/root.tsx
index 33100a437..d5bdc2812 100644
--- a/apps/web/core/components/workspace/billing/root.tsx
+++ b/apps/web/core/components/workspace/billing/root.tsx
@@ -52,8 +52,8 @@ export const BillingRoot = observer(function BillingRoot() {
/>
diff --git a/apps/web/core/components/workspace/edition-badge.tsx b/apps/web/core/components/workspace/edition-badge.tsx
index b4bebe7a3..1aea0464e 100644
--- a/apps/web/core/components/workspace/edition-badge.tsx
+++ b/apps/web/core/components/workspace/edition-badge.tsx
@@ -4,7 +4,6 @@
* See the LICENSE file for details.
*/
-import { useState } from "react";
import { observer } from "mobx-react";
// ui
import { useTranslation } from "@plane/i18n";
@@ -14,33 +13,18 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
import packageJson from "package.json";
// local components
import { Button } from "@plane/propel/button";
-import { PaidPlanUpgradeModal } from "@/components/license/modal/upgrade-modal";
export const WorkspaceEditionBadge = observer(function WorkspaceEditionBadge() {
- // states
- const [isPaidPlanPurchaseModalOpen, setIsPaidPlanPurchaseModalOpen] = useState(false);
// translation
const { t } = useTranslation();
// platform
const { isMobile } = usePlatformOS();
return (
- <>
-