From c112b785d3afd544716592555cb29876d6b790e9 Mon Sep 17 00:00:00 2001 From: Terence Ho <> Date: Fri, 21 Oct 2022 11:20:26 +0800 Subject: [PATCH] [resumes][feat] Render replies --- .../comments/ResumeCommentListItem.tsx | 72 +++++++++++++++---- .../comment/ResumeCommentReplyForm.tsx | 2 +- .../router/resumes/resumes-comments-router.ts | 2 + apps/portal/src/types/resume-comments.d.ts | 1 + 4 files changed, 63 insertions(+), 14 deletions(-) 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 ( -
+
{comment.user.name ?? 'Reviewer ABC'}
-+
{isCommentOwner ? '(Me)' : ''}
@@ -72,26 +91,29 @@ export default function ResumeCommentListItem({