diff --git a/apps/web/ce/components/license/modal/upgrade-modal.tsx b/apps/web/ce/components/license/modal/upgrade-modal.tsx index d3ee1b15c40..2fc439d690b 100644 --- a/apps/web/ce/components/license/modal/upgrade-modal.tsx +++ b/apps/web/ce/components/license/modal/upgrade-modal.tsx @@ -1,4 +1,3 @@ -import type { FC } from "react"; import { observer } from "mobx-react"; // plane imports import { @@ -19,7 +18,7 @@ import type { TCheckoutParams } from "@/components/license/modal/card/checkout-b // Constants const COMMON_CARD_CLASSNAME = "flex flex-col w-full h-full justify-end col-span-12 sm:col-span-6 xl:col-span-3"; -const COMMON_EXTRA_FEATURES_CLASSNAME = "pt-2 text-center text-11 text-accent-secondary font-medium hover:underline"; +const COMMON_EXTRA_FEATURES_CLASSNAME = "pt-2 text-center text-caption-md-medium text-accent-primary hover:underline"; export type PaidPlanUpgradeModalProps = { isOpen: boolean; diff --git a/apps/web/ce/components/pages/navigation-pane/tab-panels/empty-states/outline.tsx b/apps/web/ce/components/pages/navigation-pane/tab-panels/empty-states/outline.tsx index b885709a848..bb7f9a3aee7 100644 --- a/apps/web/ce/components/pages/navigation-pane/tab-panels/empty-states/outline.tsx +++ b/apps/web/ce/components/pages/navigation-pane/tab-panels/empty-states/outline.tsx @@ -18,7 +18,7 @@ export function PageNavigationPaneOutlineTabEmptyState() {
An image depicting the outline of a page
diff --git a/apps/web/ce/components/workspace/billing/comparison/frequency-toggle.tsx b/apps/web/ce/components/workspace/billing/comparison/frequency-toggle.tsx index 968eee51b62..50c5333982c 100644 --- a/apps/web/ce/components/workspace/billing/comparison/frequency-toggle.tsx +++ b/apps/web/ce/components/workspace/billing/comparison/frequency-toggle.tsx @@ -1,8 +1,6 @@ -import type { FC } from "react"; // plane imports import { observer } from "mobx-react"; import type { EProductSubscriptionEnum, TBillingFrequency } from "@plane/types"; -import { getSubscriptionBackgroundColor, getDiscountPillStyle } from "@plane/ui"; import { calculateYearlyDiscount, cn } from "@plane/utils"; type TPlanFrequencyToggleProps = { @@ -14,26 +12,21 @@ type TPlanFrequencyToggleProps = { }; export const PlanFrequencyToggle = observer(function PlanFrequencyToggle(props: TPlanFrequencyToggleProps) { - const { subscriptionType, monthlyPrice, yearlyPrice, selectedFrequency, setSelectedFrequency } = props; + const { monthlyPrice, yearlyPrice, selectedFrequency, setSelectedFrequency } = props; // derived values const yearlyDiscount = calculateYearlyDiscount(monthlyPrice, yearlyPrice); return ( -
-
+
+
+ ); diff --git a/apps/web/core/components/license/modal/card/base-paid-plan-card.tsx b/apps/web/core/components/license/modal/card/base-paid-plan-card.tsx index 8f529dacb92..092e2119a1f 100644 --- a/apps/web/core/components/license/modal/card/base-paid-plan-card.tsx +++ b/apps/web/core/components/license/modal/card/base-paid-plan-card.tsx @@ -1,4 +1,3 @@ -import type { FC } from "react"; import { useState } from "react"; import { observer } from "mobx-react"; import { CheckCircle } from "lucide-react"; @@ -6,7 +5,6 @@ import { Tab } from "@headlessui/react"; // plane imports // helpers import type { EProductSubscriptionEnum, TBillingFrequency, TSubscriptionPrice } from "@plane/types"; -import { getSubscriptionBackgroundColor, getUpgradeCardVariantStyle } from "@plane/ui"; import { cn, getBaseSubscriptionName, getSubscriptionName } from "@plane/utils"; export type TBasePaidPlanCardProps = { @@ -33,24 +31,23 @@ export const BasePaidPlanCard = observer(function BasePaidPlanCard(props: TBaseP // states const [selectedPlan, setSelectedPlan] = useState("month"); const basePlan = getBaseSubscriptionName(planVariant); - const upgradeCardVariantStyle = getUpgradeCardVariantStyle(planVariant); // Plane details const planeName = getSubscriptionName(planVariant); return ( -
+
- + {prices.map((price: TSubscriptionPrice) => ( cn( - "w-full rounded-sm py-1 text-13 font-medium leading-5", - selected ? "bg-surface-1 text-primary shadow" : "text-tertiary hover:text-secondary" + "w-full rounded-sm py-1 text-caption-md-medium leading-5", + selected + ? "bg-layer-2 text-primary shadow-raised-100 border border-subtle-1" + : "text-tertiary hover:text-secondary" ) } onClick={() => setSelectedPlan(price.recurring)} @@ -64,11 +61,11 @@ export const BasePaidPlanCard = observer(function BasePaidPlanCard(props: TBaseP {prices.map((price: TSubscriptionPrice) => (
-
Plane {planeName}
+
Plane {planeName}
{renderActionButton(price)}
-
{`Everything in ${basePlan} +`}
+
{`Everything in ${basePlan} +`}
    {features.map((feature) => (
  • -

    - +

    + {feature}

  • diff --git a/apps/web/core/components/license/modal/card/checkout-button.tsx b/apps/web/core/components/license/modal/card/checkout-button.tsx index 977d7339d80..b08af00acd2 100644 --- a/apps/web/core/components/license/modal/card/checkout-button.tsx +++ b/apps/web/core/components/license/modal/card/checkout-button.tsx @@ -43,34 +43,30 @@ export const PlanCheckoutButton = observer(function PlanCheckoutButton(props: Pr return ( <> -
    -
    +
    +
    {isLoading ? ( ) : ( - - - + )}
    -
    - per user per month -
    +
    per user per month
    {isLoading ? ( ) : ( -
    +