diff --git a/web/components/issues/issue-detail/issue-activity/comments/root.tsx b/web/components/issues/issue-detail/issue-activity/comments/root.tsx index 1db216537ee..3381d02c927 100644 --- a/web/components/issues/issue-detail/issue-activity/comments/root.tsx +++ b/web/components/issues/issue-detail/issue-activity/comments/root.tsx @@ -1,5 +1,9 @@ import { FC } from "react"; import { observer } from "mobx-react-lite"; +// components +import { EmptyState } from "@/components/empty-state"; +// hooks +import { EmptyStateType } from "@/constants/empty-state"; // hooks import { useIssueDetail } from "@/hooks/store"; // components @@ -28,18 +32,24 @@ export const IssueCommentRoot: FC = observer((props) => { return (
- {commentIds.map((commentId, index) => ( - - ))} + {commentIds.length > 0 ? ( + commentIds.map((commentId, index) => ( + + )) + ) : ( +
+ +
+ )}
); }); diff --git a/web/constants/empty-state.ts b/web/constants/empty-state.ts index 6130674fd4e..d62c8808ebc 100644 --- a/web/constants/empty-state.ts +++ b/web/constants/empty-state.ts @@ -532,7 +532,7 @@ const emptyStateDetails = { [EmptyStateType.ISSUE_COMMENT_EMPTY_STATE]: { key: EmptyStateType.ISSUE_COMMENT_EMPTY_STATE, title: "No comments yet", - description: "Comments can be used as a discussion and follow-up space for the issues", + description: "Comments can be used as a discussion and \n follow-up space for the issues", path: "/empty-state/search/comments", },