From 47d98171523e1d4156081f212bc1bc8d58e2a6f8 Mon Sep 17 00:00:00 2001 From: rahulramesha Date: Thu, 5 Dec 2024 16:32:50 +0530 Subject: [PATCH] chore remove unnecessary CTA --- web/ce/components/workflow/state-item-child.tsx | 6 +++++- web/core/constants/state.ts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/ce/components/workflow/state-item-child.tsx b/web/ce/components/workflow/state-item-child.tsx index aa94b52815c..2c07fd9ff00 100644 --- a/web/ce/components/workflow/state-item-child.tsx +++ b/web/ce/components/workflow/state-item-child.tsx @@ -4,6 +4,8 @@ import { observer } from "mobx-react"; import { IState } from "@plane/types"; // components import { StateItemTitle } from "@/components/project-states/state-item-title"; +// constants +import { DISPLAY_WORKFLOW_PRO_CTA } from "@/constants/state"; // import { AddStateTransition } from "./add-state-transition"; @@ -29,7 +31,9 @@ export const StateItemChild = observer((props: StateItemChildProps) => { disabled={disabled} state={state} /> - + {DISPLAY_WORKFLOW_PRO_CTA && ( + + )} ); }); diff --git a/web/core/constants/state.ts b/web/core/constants/state.ts index b35951046b2..24d10cf5669 100644 --- a/web/core/constants/state.ts +++ b/web/core/constants/state.ts @@ -47,3 +47,5 @@ export const PENDING_STATE_GROUPS = [ STATE_GROUPS.started.key, STATE_GROUPS.cancelled.key, ]; + +export const DISPLAY_WORKFLOW_PRO_CTA = false;