From 265ce7778a7d532defd12582b1ef42a05cce34b9 Mon Sep 17 00:00:00 2001 From: Prateek Shourya Date: Thu, 28 Mar 2024 15:04:26 +0530 Subject: [PATCH] [WEB-840] chore: remove `make a copy` option from draft issue quick action menu. (#4081) --- .../quick-action-dropdowns/draft-issue.tsx | 26 +++++-------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx b/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx index b773e7031..9502e7623 100644 --- a/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx +++ b/web/components/issues/issue-layouts/quick-action-dropdowns/draft-issue.tsx @@ -1,20 +1,21 @@ import { useState } from "react"; import omit from "lodash/omit"; import { observer } from "mobx-react"; -// hooks -import { Copy, Pencil, Trash2 } from "lucide-react"; +// icons +import { Pencil, Trash2 } from "lucide-react"; +// types import { TIssue } from "@plane/types"; +// ui import { CustomMenu } from "@plane/ui"; +// components import { CreateUpdateIssueModal, DeleteIssueModal } from "@/components/issues"; +// constant import { EIssuesStoreType } from "@/constants/issue"; import { EUserProjectRoles } from "@/constants/project"; +// hooks import { useEventTracker, useIssues, useUser } from "@/hooks/store"; -// ui -// components -// helpers // types import { IQuickActionProps } from "../list/list-view-types"; -// constant export const DraftIssueQuickActions: React.FC = observer((props) => { const { issue, handleDelete, handleUpdate, customActionButton, portalElement, readOnly = false } = props; @@ -89,19 +90,6 @@ export const DraftIssueQuickActions: React.FC = observer((pro )} - {isEditingAllowed && ( - { - setTrackElement(activeLayout); - setCreateUpdateIssueModal(true); - }} - > -
- - Make a copy -
-
- )} {isDeletingAllowed && ( {