diff --git a/apps/web/ce/components/license/index.ts b/apps/web/ce/components/license/index.ts deleted file mode 100644 index dd65a9ec34..0000000000 --- a/apps/web/ce/components/license/index.ts +++ /dev/null @@ -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"; diff --git a/apps/web/ce/components/license/modal/index.ts b/apps/web/ce/components/license/modal/index.ts deleted file mode 100644 index c255805ae8..0000000000 --- a/apps/web/ce/components/license/modal/index.ts +++ /dev/null @@ -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"; diff --git a/apps/web/ce/components/workspace/edition-badge.tsx b/apps/web/ce/components/workspace/edition-badge.tsx index 34ef704987..b11e850b4e 100644 --- a/apps/web/ce/components/workspace/edition-badge.tsx +++ b/apps/web/ce/components/workspace/edition-badge.tsx @@ -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 diff --git a/apps/web/ce/components/license/modal/upgrade-modal.tsx b/apps/web/core/components/license/modal/upgrade-modal.tsx similarity index 99% rename from apps/web/ce/components/license/modal/upgrade-modal.tsx rename to apps/web/core/components/license/modal/upgrade-modal.tsx index eebabe44a2..236d282428 100644 --- a/apps/web/ce/components/license/modal/upgrade-modal.tsx +++ b/apps/web/core/components/license/modal/upgrade-modal.tsx @@ -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