From 5a4e4e897789e23af501941bb21cdc6c55ba8ca1 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Thu, 3 Nov 2022 20:09:38 +0800 Subject: [PATCH] [offers][refactor] tweak comments list --- .../offers/profile/ProfileComments.tsx | 107 ++++++----- .../offers/profile/comments/CommentCard.tsx | 177 ++++++++++-------- .../comments/ExpandableCommentCard.tsx | 28 +-- 3 files changed, 166 insertions(+), 146 deletions(-) diff --git a/apps/portal/src/components/offers/profile/ProfileComments.tsx b/apps/portal/src/components/offers/profile/ProfileComments.tsx index 5654ed5e..34ac8b67 100644 --- a/apps/portal/src/components/offers/profile/ProfileComments.tsx +++ b/apps/portal/src/components/offers/profile/ProfileComments.tsx @@ -110,10 +110,10 @@ export default function ProfileComments({ ); } return ( -
-
+
+
-
+
{isEditable && ( @@ -169,57 +169,62 @@ export default function ProfileComments({
-

Discussions

- {isEditable || session?.user?.name ? ( -
-