diff options
Diffstat (limited to 'src/components/CommentsList')
| -rw-r--r-- | src/components/CommentsList/CommentsList.tsx | 12 |
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} /> + ); }); }; |
