Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEB-1501] chore: created new constants for marketing website page links #4670

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion web/components/workspace/workspace-active-cycles-upgrade.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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"
>
Expand Down
4 changes: 4 additions & 0 deletions web/constants/common.ts
Original file line number Diff line number Diff line change
@@ -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";
3 changes: 2 additions & 1 deletion web/pages/[workspaceSlug]/settings/billing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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>
Expand Down
Loading