From dc818c90bedff238ed0c16d0e6f2f65074254891 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing Date: Sun, 16 Oct 2022 22:40:26 +0800 Subject: [PATCH] [offers][feat] add comment reply components --- .../offers/profile/ProfileComments.tsx | 30 +++++-- .../offers/profile/comments/CommentCard.tsx | 89 +++++++++++++------ .../comments/ExpandableCommentCard.tsx | 18 ++-- 3 files changed, 97 insertions(+), 40 deletions(-) diff --git a/apps/portal/src/components/offers/profile/ProfileComments.tsx b/apps/portal/src/components/offers/profile/ProfileComments.tsx index e3e9bb18..0b18332a 100644 --- a/apps/portal/src/components/offers/profile/ProfileComments.tsx +++ b/apps/portal/src/components/offers/profile/ProfileComments.tsx @@ -1,5 +1,5 @@ import { ClipboardDocumentIcon, ShareIcon } from '@heroicons/react/24/outline'; -import { Button, Spinner, TextArea } from '@tih/ui'; +import { Button, HorizontalDivider, Spinner, TextArea } from '@tih/ui'; import ExpandableCommentCard from './comments/ExpandableCommentCard'; @@ -21,6 +21,10 @@ export default function ProfileComments({ function handleReply(replayingToId: string, userId: string) { return replayingToId + userId; // To integrate with API } + + function handleComment() { + return 'profileId'; // To integrate with API + } if (isLoading) { return (
@@ -54,9 +58,26 @@ export default function ProfileComments({ onClick={handleCopyPublicLink} />
-

- Discussions feature coming soon -

+

Discussions

+
+