From 5d0533a44fc60d125f302eaffbf025382e4888b2 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 31 Mar 2023 00:31:00 +0530 Subject: [PATCH] style: ellipsis consistent style (#632) * style: ellipsis consistent style * style: consistent ellipsis menu for module and cycle --- .../core/board-view/single-issue.tsx | 6 +++--- .../components/core/list-view/single-issue.tsx | 6 +++--- apps/app/components/cycles/sidebar.tsx | 14 +++++++------- .../components/cycles/single-cycle-card.tsx | 8 ++++---- .../components/issues/my-issues-list-item.tsx | 2 +- apps/app/components/modules/sidebar.tsx | 18 ++++++++++-------- .../components/modules/single-module-card.tsx | 12 ++++++------ .../components/project/single-project-card.tsx | 8 ++++---- .../project/single-sidebar-project.tsx | 11 ++++++----- apps/app/components/ui/context-menu.tsx | 4 ++-- apps/app/components/ui/custom-menu.tsx | 4 ++-- 11 files changed, 48 insertions(+), 45 deletions(-) diff --git a/apps/app/components/core/board-view/single-issue.tsx b/apps/app/components/core/board-view/single-issue.tsx index fd36eeb95..c067ed01c 100644 --- a/apps/app/components/core/board-view/single-issue.tsx +++ b/apps/app/components/core/board-view/single-issue.tsx @@ -226,7 +226,7 @@ export const SingleBoardIssue: React.FC = ({ {type && !isNotAllowed && ( - + Edit issue @@ -237,13 +237,13 @@ export const SingleBoardIssue: React.FC = ({ )} handleDeleteIssue(issue)}> - + Delete issue - + Copy issue Link diff --git a/apps/app/components/core/list-view/single-issue.tsx b/apps/app/components/core/list-view/single-issue.tsx index b5e31dd9c..0dc66996c 100644 --- a/apps/app/components/core/list-view/single-issue.tsx +++ b/apps/app/components/core/list-view/single-issue.tsx @@ -258,7 +258,7 @@ export const SingleListIssue: React.FC = ({ {type && !isNotAllowed && ( - + Edit issue @@ -269,13 +269,13 @@ export const SingleListIssue: React.FC = ({ )} handleDeleteIssue(issue)}> - + Delete issue - + Copy issue link diff --git a/apps/app/components/cycles/sidebar.tsx b/apps/app/components/cycles/sidebar.tsx index d7d886fd0..c3a04ae6b 100644 --- a/apps/app/components/cycles/sidebar.tsx +++ b/apps/app/components/cycles/sidebar.tsx @@ -293,20 +293,20 @@ export const CycleDetailsSidebar: React.FC = ({

{cycle.name}

- - - - Copy Link - - {!isCompleted && ( setCycleDeleteModal(true)}> - + Delete )} + + + + Copy link + +
diff --git a/apps/app/components/cycles/single-cycle-card.tsx b/apps/app/components/cycles/single-cycle-card.tsx index f99cc7fc8..d6b1200a0 100644 --- a/apps/app/components/cycles/single-cycle-card.tsx +++ b/apps/app/components/cycles/single-cycle-card.tsx @@ -310,16 +310,16 @@ export const SingleCycleCard: React.FC = ({ {!isCompleted && ( - + - Delete Cycle + Delete cycle )} - + - Copy Cycle Link + Copy cycle link diff --git a/apps/app/components/issues/my-issues-list-item.tsx b/apps/app/components/issues/my-issues-list-item.tsx index 273382427..676371d85 100644 --- a/apps/app/components/issues/my-issues-list-item.tsx +++ b/apps/app/components/issues/my-issues-list-item.tsx @@ -169,7 +169,7 @@ export const MyIssuesListItem: React.FC = ({ issue, properties, projectId )} - + Copy issue link diff --git a/apps/app/components/modules/sidebar.tsx b/apps/app/components/modules/sidebar.tsx index f272eff0f..f42a36e68 100644 --- a/apps/app/components/modules/sidebar.tsx +++ b/apps/app/components/modules/sidebar.tsx @@ -305,7 +305,9 @@ export const ModuleDetailsSidebar: React.FC = ({ { submitChanges({ @@ -332,18 +334,18 @@ export const ModuleDetailsSidebar: React.FC = ({

{module.name}

- - - - Copy Link - - setModuleDeleteModal(true)}> - + Delete + + + + Copy link + +
diff --git a/apps/app/components/modules/single-module-card.tsx b/apps/app/components/modules/single-module-card.tsx index 63e0c2e99..b5b815a69 100644 --- a/apps/app/components/modules/single-module-card.tsx +++ b/apps/app/components/modules/single-module-card.tsx @@ -152,21 +152,21 @@ export const SingleModuleCard: React.FC = ({ module, handleEditModule }) - + - Edit Module + Edit module - + - Delete Module + Delete module - + - Copy Module Link + Copy module link diff --git a/apps/app/components/project/single-project-card.tsx b/apps/app/components/project/single-project-card.tsx index e366a3906..02e2190c7 100644 --- a/apps/app/components/project/single-project-card.tsx +++ b/apps/app/components/project/single-project-card.tsx @@ -219,7 +219,7 @@ export const SingleProjectCard: React.FC = ({ {isOwner && ( setDeleteProject(project.id)}> - + Delete project @@ -227,21 +227,21 @@ export const SingleProjectCard: React.FC = ({ )} {project.is_favorite ? ( - + Remove from favorites ) : ( - + Add to favorites )} - + Copy project link diff --git a/apps/app/components/project/single-sidebar-project.tsx b/apps/app/components/project/single-sidebar-project.tsx index d9a60be9d..1e2273513 100644 --- a/apps/app/components/project/single-sidebar-project.tsx +++ b/apps/app/components/project/single-sidebar-project.tsx @@ -9,6 +9,7 @@ import { CustomMenu } from "components/ui"; import { ChevronDownIcon, DocumentTextIcon, + LinkIcon, StarIcon, TrashIcon, } from "@heroicons/react/24/outline"; @@ -116,14 +117,14 @@ export const SingleSidebarProject: React.FC = ({ {!sidebarCollapse && ( - + Delete project {handleAddToFavorites && ( - + Add to favorites @@ -131,15 +132,15 @@ export const SingleSidebarProject: React.FC = ({ )} {handleRemoveFromFavorites && ( - + Remove from favorites )} - - + + Copy project link diff --git a/apps/app/components/ui/context-menu.tsx b/apps/app/components/ui/context-menu.tsx index acef49779..ac91cc27f 100644 --- a/apps/app/components/ui/context-menu.tsx +++ b/apps/app/components/ui/context-menu.tsx @@ -71,7 +71,7 @@ const MenuItem: React.FC = ({ {renderAs === "a" ? ( <> {Icon && } @@ -82,7 +82,7 @@ const MenuItem: React.FC = ({ ) : (