diff --git a/src/pages/Articles/components/commentComponent.tsx b/src/pages/Articles/components/commentComponent.tsx index e730e4e..310db92 100644 --- a/src/pages/Articles/components/commentComponent.tsx +++ b/src/pages/Articles/components/commentComponent.tsx @@ -71,7 +71,7 @@ const CommentComponent: FunctionComponent<{ comment: IArticleComments, level: nu return ( - {/* Indent based on level */} + {/* Indent based on level */} 0 && ( - <> + {showAllReplies ? comment.replies.map(reply => ( @@ -211,7 +211,7 @@ const CommentComponent: FunctionComponent<{ comment: IArticleComments, level: nu : comment.replies.slice(0, 1).map(reply => ( ))} - + )} diff --git a/src/pages/Threads/components/commentComponent.tsx b/src/pages/Threads/components/commentComponent.tsx index 4e89374..60ca631 100644 --- a/src/pages/Threads/components/commentComponent.tsx +++ b/src/pages/Threads/components/commentComponent.tsx @@ -70,7 +70,7 @@ const CommentComponent: FunctionComponent<{ comment: IThreadComments, level: num return ( - + @@ -176,7 +176,7 @@ const CommentComponent: FunctionComponent<{ comment: IThreadComments, level: num {/* Render nested replies */} {comment.replies && comment.replies.length > 0 && ( - <> + {showAllReplies ? comment.replies.map(reply => ( @@ -184,7 +184,7 @@ const CommentComponent: FunctionComponent<{ comment: IThreadComments, level: num : comment.replies.slice(0, 1).map(reply => ( ))} - + )}