Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

chore: created new constants for marketing website page links (#4670)

Aaryan Khandelwalba4798deb95e
diff --git a/web/components/workspace/workspace-active-cycles-upgrade.tsx b/web/components/workspace/workspace-active-cycles-upgrade.tsx
index 5e577b4e8a..8071a23945 100644
--- a/web/components/workspace/workspace-active-cycles-upgrade.tsx
+++ b/web/components/workspace/workspace-active-cycles-upgrade.tsx
@@ -6,6 +6,7 @@ import { Crown } from "lucide-react";
// ui
import { getButtonStyling } from "@plane/ui";
// constants
+import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common";
import { WORKSPACE_ACTIVE_CYCLES_DETAILS } from "@/constants/cycle";
// helper
import { cn } from "@/helpers/common.helper";
@@ -38,7 +39,7 @@ export const WorkspaceActiveCyclesUpgrade = observer(() => {
<div className="flex items-center gap-3">
<a
className={`${getButtonStyling("primary", "md")} cursor-pointer`}
- href="https://plane.so/pricing"
+ href={MARKETING_PRICING_PAGE_LINK}
target="_blank"
rel="noreferrer"
>
diff --git a/web/constants/common.ts b/web/constants/common.ts
index 3fac821faa..71d65765c5 100644
--- a/web/constants/common.ts
+++ b/web/constants/common.ts
@@ -1 +1,5 @@
export const MAX_FILE_SIZE = 5 * 1024 * 1024; // 5MB
+
+export const MARKETING_PRICING_PAGE_LINK = "https://plane.so/pricing";
+
+export const MARKETING_CONTACT_US_PAGE_LINK = "https://plane.so/contact";
diff --git a/web/pages/[workspaceSlug]/settings/billing.tsx b/web/pages/[workspaceSlug]/settings/billing.tsx
index 583a78b17c..bde5abebbd 100644
--- a/web/pages/[workspaceSlug]/settings/billing.tsx
+++ b/web/pages/[workspaceSlug]/settings/billing.tsx
@@ -3,6 +3,7 @@ import { observer } from "mobx-react";
import { Button } from "@plane/ui";
import { PageHead } from "@/components/core";
import { WorkspaceSettingHeader } from "@/components/headers";
+import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common";
import { EUserWorkspaceRoles } from "@/constants/workspace";
import { useUser, useWorkspace } from "@/hooks/store";
// layouts
@@ -47,7 +48,7 @@ const BillingSettingsPage: NextPageWithLayout = observer(() => {
<div>
<h4 className="text-md mb-1 leading-6">Current plan</h4>
<p className="mb-3 text-sm text-custom-text-200">You are currently using the free plan</p>
- <a href="https://plane.so/pricing" target="_blank" rel="noreferrer">
+ <a href={MARKETING_PRICING_PAGE_LINK} target="_blank" rel="noreferrer">
<Button variant="neutral-primary">View Plans</Button>
</a>
</div>