refactor: fixed Lint tests

This commit is contained in:
ayeshoali
2022-10-18 15:15:05 +05:00
parent 375af11a7f
commit 3ec0b82dce

View File

@@ -71,11 +71,14 @@ function DiscussionCommentsView({
...filterPosts(comments, 'unendorsed')], [comments]);
return (
<>
{!isLoading && <div className="mx-4 text-primary-700" role="heading" aria-level="2" style={{ lineHeight: '28px' }}>
{!isLoading
&& (
<div className="mx-4 text-primary-700" role="heading" aria-level="2" style={{ lineHeight: '28px' }}>
{endorsed === EndorsementStatus.ENDORSED
? intl.formatMessage(messages.endorsedResponseCount, { num: sortedComments.length })
: intl.formatMessage(messages.responseCount, { num: sortedComments.length })}
</div>}
</div>
)}
<div className="mx-4" role="list">
{sortedComments.map(comment => (
<Comment comment={comment} key={comment.id} postType={postType} isClosedPost={isClosed} />