From 7029f17be14a54281be20453537c8cf4d7b6c255 Mon Sep 17 00:00:00 2001 From: Terence Ho <> Date: Sun, 23 Oct 2022 21:53:21 +0800 Subject: [PATCH] [resumes][refactor] update comments ui --- .../comments/ResumeCommentListItem.tsx | 37 +++++++++-------- .../resumes/comments/ResumeCommentsList.tsx | 41 +++++++++++++------ .../comment/ResumeCommentVoteButtons.tsx | 2 +- 3 files changed, 50 insertions(+), 30 deletions(-) diff --git a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx index dd44d4b4..98384595 100644 --- a/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx +++ b/apps/portal/src/components/resumes/comments/ResumeCommentListItem.tsx @@ -1,4 +1,5 @@ import clsx from 'clsx'; +import { formatDistanceToNow } from 'date-fns'; import { useState } from 'react'; import { ChevronUpIcon } from '@heroicons/react/20/solid'; import { FaceSmileIcon } from '@heroicons/react/24/outline'; @@ -26,12 +27,7 @@ export default function ResumeCommentListItem({ const [showReplies, setShowReplies] = useState(true); return ( -
{comment.user.name ?? 'Reviewer ABC'} @@ -72,9 +68,8 @@ export default function ResumeCommentListItem({