summaryrefslogtreecommitdiffstats
path: root/src/components/CommentsList/CommentsList.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-15 23:08:25 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-15 23:28:24 +0100
commit6f46e54e382bf3f535f27ebead18c2bdf4628e49 (patch)
tree3285800f7c08afe25ebcf985bd5f643bdf7fc603 /src/components/CommentsList/CommentsList.tsx
parent4d0b13d22be1297c91316d5e52c8fb30ded5c7dd (diff)
chore(comments): handle comment reply
Diffstat (limited to 'src/components/CommentsList/CommentsList.tsx')
-rw-r--r--src/components/CommentsList/CommentsList.tsx12
1 files changed, 10 insertions, 2 deletions
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} />
+ );
});
};