From 98cef0e1e8b79ca7be844e0aa18f915a3c02c478 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 17 Apr 2023 14:45:51 +0530 Subject: [PATCH] fix: my issue page display property (#848) --- .../components/issues/my-issues-list-item.tsx | 29 +++++++++++++++++-- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/apps/app/components/issues/my-issues-list-item.tsx b/apps/app/components/issues/my-issues-list-item.tsx index 676371d85..9e3e85c22 100644 --- a/apps/app/components/issues/my-issues-list-item.tsx +++ b/apps/app/components/issues/my-issues-list-item.tsx @@ -5,6 +5,8 @@ import { useRouter } from "next/router"; import { mutate } from "swr"; +// hooks +import useToast from "hooks/use-toast"; // services import issuesService from "services/issues.service"; // components @@ -13,16 +15,17 @@ import { ViewPrioritySelect, ViewStateSelect, } from "components/issues/view-select"; +// icon +import { LinkIcon, PaperClipIcon } from "@heroicons/react/24/outline"; // ui import { AssigneesList } from "components/ui/avatar"; import { CustomMenu, Tooltip } from "components/ui"; // types import { IIssue, Properties } from "types"; +// helper +import { copyTextToClipboard, truncateText } from "helpers/string.helper"; // fetch-keys import { USER_ISSUE } from "constants/fetch-keys"; -import { copyTextToClipboard, truncateText } from "helpers/string.helper"; -import useToast from "hooks/use-toast"; -import { LinkIcon } from "@heroicons/react/24/outline"; type Props = { issue: IIssue; @@ -167,6 +170,26 @@ export const MyIssuesListItem: React.FC = ({ issue, properties, projectId )} + {properties.link && ( +
+ +
+ + {issue.link_count} +
+
+
+ )} + {properties.attachment_count && ( +
+ +
+ + {issue.attachment_count} +
+
+
+ )}