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

This commit is contained in:
Aaryan Khandelwal 2024-05-31 17:30:50 +05:30 committed by GitHub
parent 463d0732e9
commit ba4798deb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -6,6 +6,7 @@ import { Crown } from "lucide-react";
// ui // ui
import { getButtonStyling } from "@plane/ui"; import { getButtonStyling } from "@plane/ui";
// constants // constants
import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common";
import { WORKSPACE_ACTIVE_CYCLES_DETAILS } from "@/constants/cycle"; import { WORKSPACE_ACTIVE_CYCLES_DETAILS } from "@/constants/cycle";
// helper // helper
import { cn } from "@/helpers/common.helper"; import { cn } from "@/helpers/common.helper";
@ -38,7 +39,7 @@ export const WorkspaceActiveCyclesUpgrade = observer(() => {
<div className="flex items-center gap-3"> <div className="flex items-center gap-3">
<a <a
className={`${getButtonStyling("primary", "md")} cursor-pointer`} className={`${getButtonStyling("primary", "md")} cursor-pointer`}
href="https://plane.so/pricing" href={MARKETING_PRICING_PAGE_LINK}
target="_blank" target="_blank"
rel="noreferrer" rel="noreferrer"
> >

View File

@ -1 +1,5 @@
export const MAX_FILE_SIZE = 5 * 1024 * 1024; // 5MB 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";

View File

@ -3,6 +3,7 @@ import { observer } from "mobx-react";
import { Button } from "@plane/ui"; import { Button } from "@plane/ui";
import { PageHead } from "@/components/core"; import { PageHead } from "@/components/core";
import { WorkspaceSettingHeader } from "@/components/headers"; import { WorkspaceSettingHeader } from "@/components/headers";
import { MARKETING_PRICING_PAGE_LINK } from "@/constants/common";
import { EUserWorkspaceRoles } from "@/constants/workspace"; import { EUserWorkspaceRoles } from "@/constants/workspace";
import { useUser, useWorkspace } from "@/hooks/store"; import { useUser, useWorkspace } from "@/hooks/store";
// layouts // layouts
@ -47,7 +48,7 @@ const BillingSettingsPage: NextPageWithLayout = observer(() => {
<div> <div>
<h4 className="text-md mb-1 leading-6">Current plan</h4> <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> <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> <Button variant="neutral-primary">View Plans</Button>
</a> </a>
</div> </div>