mirror of
https://github.com/makeplane/plane.git
synced 2026-07-11 13:00:11 +02:00
refactor: remove legacy license components and update import paths for PaidPlanUpgradeModal
This commit is contained in:
@@ -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";
|
||||
@@ -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";
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user