refactor: remove legacy license components and update import paths for PaidPlanUpgradeModal

This commit is contained in:
Atul Tameshwari
2026-06-16 21:03:05 +05:30
parent e833d45310
commit 7c19095e91
4 changed files with 2 additions and 15 deletions

View File

@@ -1,7 +0,0 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
export * from "./modal";

View File

@@ -1,7 +0,0 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
export * from "./upgrade-modal";

View File

@@ -13,8 +13,8 @@ import { Tooltip } from "@plane/propel/tooltip";
import { usePlatformOS } from "@/hooks/use-platform-os";
import packageJson from "package.json";
// local components
import { PaidPlanUpgradeModal } from "../license";
import { Button } from "@plane/propel/button";
import { PaidPlanUpgradeModal } from "@/components/license/modal/upgrade-modal";
export const WorkspaceEditionBadge = observer(function WorkspaceEditionBadge() {
// states

View File

@@ -40,6 +40,7 @@ export const PaidPlanUpgradeModal = observer(function PaidPlanUpgradeModal(props
const handleRedirection = ({ planVariant, priceId }: TCheckoutParams) => {
// Get the product and price using plane community constants
const product = PLANE_COMMUNITY_PRODUCTS[planVariant];
// oxlint-disable-next-line no-shadow
const price = product.prices.find((price) => price.id === priceId);
const frequency = price?.recurring ?? "year";
// Redirect to the appropriate URL