Skip to content

Commit

Permalink
chore remove unnecessary CTA (#6161)
Browse files Browse the repository at this point in the history
rahulramesha authored Dec 5, 2024
1 parent d55ee6d commit a612a17
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/ce/components/workflow/state-item-child.tsx
Original file line number Diff line number Diff line change
@@ -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}
/>
<AddStateTransition workspaceSlug={workspaceSlug} projectId={projectId} parentStateId={state.id} />
{DISPLAY_WORKFLOW_PRO_CTA && (
<AddStateTransition workspaceSlug={workspaceSlug} projectId={projectId} parentStateId={state.id} />
)}
</div>
);
});
2 changes: 2 additions & 0 deletions web/core/constants/state.ts
Original file line number Diff line number Diff line change
@@ -47,3 +47,5 @@ export const PENDING_STATE_GROUPS = [
STATE_GROUPS.started.key,
STATE_GROUPS.cancelled.key,
];

export const DISPLAY_WORKFLOW_PRO_CTA = false;

0 comments on commit a612a17

Please sign in to comment.