Skip to content

Commit 983ae20

Browse files
committed
feat: display comment body and replies in CommentItem component
1 parent 4fb6915 commit 983ae20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/comment-section.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ const CommentItem = (props: { comment: CommentPresentation }) => {
166166
return (
167167
<div>
168168
<pre className=" font-normal">{props.comment.body}</pre>
169+
170+
{props.comment.replies?.map((c) => <CommentItem comment={c} />)}
169171
</div>
170172
);
171173
};

0 commit comments

Comments
 (0)