diff --git a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx index 1be17cf7..c20930cf 100644 --- a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx +++ b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx @@ -1,3 +1,4 @@ +import clsx from 'clsx'; import { useState } from 'react'; import { FaceSmileIcon } from '@heroicons/react/24/outline'; @@ -23,27 +24,45 @@ export default function ResumeCommentListItem({ const [isReplyingComment, setIsReplyingComment] = useState(false); return ( -
+
+ {/* Image Icon */} {comment.user.image ? ( {comment.user.name ) : ( - + )}
{/* Name and creation time */}
-

+

{comment.user.name ?? 'Reviewer ABC'}

-

+

{isCommentOwner ? '(Me)' : ''}

@@ -72,26 +91,29 @@ export default function ResumeCommentListItem({
+ {/* Action buttons; only present when not editing/replying */} {isCommentOwner && !isEditingComment && !isReplyingComment && ( <> - + {!comment.parentId && ( + + )} )}
- {/* Replies */} + {/* Reply Form */} {isReplyingComment && ( )} + + {/* Replies */} + {comment.children.length > 0 && ( + // Horizontal Divider +
+
+
+ + Replies + +
+
+ + {comment.children.map((child) => { + return ( + + ); + })} +
+ )}
diff --git a/apps/portal/src/components/resumes/comments/comment/ResumeCommentReplyForm.tsx b/apps/portal/src/components/resumes/comments/comment/ResumeCommentReplyForm.tsx index 0f2f89e6..ea14632a 100644 --- a/apps/portal/src/components/resumes/comments/comment/ResumeCommentReplyForm.tsx +++ b/apps/portal/src/components/resumes/comments/comment/ResumeCommentReplyForm.tsx @@ -69,7 +69,7 @@ export default function ResumeCommentReplyForm({ return (
-
+