diff --git a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx index c20930cf..36299b2a 100644 --- a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx +++ b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx @@ -1,5 +1,6 @@ import clsx from 'clsx'; import { useState } from 'react'; +import { ChevronUpIcon } from '@heroicons/react/20/solid'; import { FaceSmileIcon } from '@heroicons/react/24/outline'; import ResumeCommentEditForm from './comment/ResumeCommentEditForm'; @@ -22,6 +23,7 @@ export default function ResumeCommentListItem({ const isCommentOwner = userId === comment.user.userId; const [isEditingComment, setIsEditingComment] = useState(false); const [isReplyingComment, setIsReplyingComment] = useState(false); + const [showReplies, setShowReplies] = useState(true); return (

{comment.user.name ?? 'Reviewer ABC'} @@ -126,24 +128,30 @@ export default function ResumeCommentListItem({ {/* Replies */} {comment.children.length > 0 && ( // Horizontal Divider -

-
-
- - Replies - -
-
- - {comment.children.map((child) => { - return ( - - ); - })} +
+ + + {showReplies && + comment.children.map((child) => { + return ( + + ); + })}
)}