From 58de5bfd6a7ab282fdd1fefbda0313c390db662a Mon Sep 17 00:00:00 2001 From: Ramesh Kumar Chandra Date: Fri, 26 Apr 2024 19:28:05 +0530 Subject: [PATCH] chore: typos and refactor --- web/components/cycles/active-cycle/header.tsx | 2 +- .../estimates/delete-estimate-modal.tsx | 2 +- .../issues/issue-detail/sidebar.tsx | 10 +++--- .../quick-action-dropdowns/all-issue.tsx | 6 ++-- .../quick-action-dropdowns/cycle-issue.tsx | 6 ++-- .../quick-action-dropdowns/module-issue.tsx | 6 ++-- .../quick-action-dropdowns/project-issue.tsx | 6 ++-- .../issues/peek-overview/header.tsx | 10 +++--- ...der.tsx => modules-list-mobile-header.tsx} | 0 web/components/modules/quick-actions.tsx | 6 ++-- web/components/modules/sidebar.tsx | 6 ++-- .../project/settings/features-list.tsx | 2 +- .../profile/preferences/layout.tsx | 33 +++++++++---------- .../projects/[projectId]/modules/index.tsx | 2 +- web/pages/profile/preferences/theme.tsx | 2 +- 15 files changed, 49 insertions(+), 50 deletions(-) rename web/components/modules/{moduels-list-mobile-header.tsx => modules-list-mobile-header.tsx} (100%) diff --git a/web/components/cycles/active-cycle/header.tsx b/web/components/cycles/active-cycle/header.tsx index 53cff0191..266cf9120 100644 --- a/web/components/cycles/active-cycle/header.tsx +++ b/web/components/cycles/active-cycle/header.tsx @@ -47,7 +47,7 @@ export const ActiveCycleHeader: FC = (props) => {
-
+
{cycleAssignee.length > 0 && ( diff --git a/web/components/estimates/delete-estimate-modal.tsx b/web/components/estimates/delete-estimate-modal.tsx index 70ccb6a3b..7589db12a 100644 --- a/web/components/estimates/delete-estimate-modal.tsx +++ b/web/components/estimates/delete-estimate-modal.tsx @@ -98,7 +98,7 @@ export const DeleteEstimateModal: React.FC = observer((props) => {

Are you sure you want to delete estimate-{" "} {data?.name} - {""}? All of the data related to the estiamte will be permanently removed. This action cannot be + {""}? All of the data related to the estimate will be permanently removed. This action cannot be undone.

diff --git a/web/components/issues/issue-detail/sidebar.tsx b/web/components/issues/issue-detail/sidebar.tsx index 60221f4c2..7cf2abac7 100644 --- a/web/components/issues/issue-detail/sidebar.tsx +++ b/web/components/issues/issue-detail/sidebar.tsx @@ -122,7 +122,7 @@ export const IssueDetailsSidebar: React.FC = observer((props) => { const stateDetails = getStateById(issue.state_id); // auth const isArchivingAllowed = !is_archived && issueOperations.archive && isEditable; - const isInArchivableGroup = + const isInArchiveGroup = !!stateDetails && [STATE_GROUPS.completed.key, STATE_GROUPS.cancelled.key].includes(stateDetails?.group); const minDate = issue.start_date ? getDate(issue.start_date) : null; @@ -164,19 +164,19 @@ export const IssueDetailsSidebar: React.FC = observer((props) => { {isArchivingAllowed && (