From 464c13fcd03a0168ad363c735632079a33ba13d5 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Sun, 23 Jul 2023 22:14:41 +0530 Subject: [PATCH] fix: issue parent activity (#1629) --- .../core/gantt-chart-view/index.tsx | 2 +- apps/app/components/issues/activity.tsx | 49 ++++++++++--------- .../{ => attachment}/attachment-upload.tsx | 11 +++-- .../issues/{ => attachment}/attachments.tsx | 6 +-- .../delete-attachment-modal.tsx | 3 +- .../app/components/issues/attachment/index.ts | 3 ++ apps/app/components/issues/index.ts | 5 +- .../projects/[projectId]/issues/[issueId].tsx | 3 ++ 8 files changed, 45 insertions(+), 37 deletions(-) rename apps/app/components/issues/{ => attachment}/attachment-upload.tsx (94%) rename apps/app/components/issues/{ => attachment}/attachments.tsx (96%) rename apps/app/components/issues/{ => attachment}/delete-attachment-modal.tsx (97%) create mode 100644 apps/app/components/issues/attachment/index.ts diff --git a/apps/app/components/core/gantt-chart-view/index.tsx b/apps/app/components/core/gantt-chart-view/index.tsx index ca07e3d7a..a881cb7aa 100644 --- a/apps/app/components/core/gantt-chart-view/index.tsx +++ b/apps/app/components/core/gantt-chart-view/index.tsx @@ -2,7 +2,7 @@ import { useRouter } from "next/router"; // components import { CycleIssuesGanttChartView } from "components/cycles"; -import { IssueGanttChartView } from "components/issues/gantt-chart"; +import { IssueGanttChartView } from "components/issues"; import { ModuleIssuesGanttChartView } from "components/modules"; import { ViewIssuesGanttChartView } from "components/views"; diff --git a/apps/app/components/issues/activity.tsx b/apps/app/components/issues/activity.tsx index 58808d8a1..958a707d8 100644 --- a/apps/app/components/issues/activity.tsx +++ b/apps/app/components/issues/activity.tsx @@ -54,8 +54,22 @@ const activityDetails: { }, attachment: { message: (activity) => { - if (activity.verb === "created") return "uploaded a new attachment."; - else return "removed the attachment."; + if (activity.verb === "created") + return ( + <> + uploaded a new{" "} + + attachment + + + + ); + else return "removed an attachment."; }, icon: