From 6f46e54e382bf3f535f27ebead18c2bdf4628e49 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Sat, 15 Jan 2022 23:08:25 +0100
Subject: chore(comments): handle comment reply

---
 src/components/CommentsList/CommentsList.tsx | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

(limited to 'src/components/CommentsList/CommentsList.tsx')

diff --git a/src/components/CommentsList/CommentsList.tsx b/src/components/CommentsList/CommentsList.tsx
index 3a1c57e..bdca00b 100644
--- a/src/components/CommentsList/CommentsList.tsx
+++ b/src/components/CommentsList/CommentsList.tsx
@@ -3,10 +3,18 @@ import Comment from '@components/Comment/Comment';
 import { t } from '@lingui/macro';
 import styles from './CommentsList.module.scss';
 
-const CommentsList = ({ comments }: { comments: CommentData[] }) => {
+const CommentsList = ({
+  articleId,
+  comments,
+}: {
+  articleId: number;
+  comments: CommentData[];
+}) => {
   const getCommentsList = () => {
     return comments.map((comment) => {
-      return <Comment key={comment.id} comment={comment} />;
+      return (
+        <Comment key={comment.id} articleId={articleId} comment={comment} />
+      );
     });
   };
 
-- 
cgit v1.2.3

