From 4d39191e844813c3aab115a49a0b94dd58859e25 Mon Sep 17 00:00:00 2001 From: Julian Dehm Date: Wed, 27 Nov 2024 17:35:45 +0100 Subject: [PATCH] comments_async: fix some linting errors after the update of eslint --- .../static/comments_async/comment.jsx | 20 +++++++++++-------- .../static/comments_async/filter_category.jsx | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/adhocracy4/comments_async/static/comments_async/comment.jsx b/adhocracy4/comments_async/static/comments_async/comment.jsx index 55c800828..8e0382f17 100644 --- a/adhocracy4/comments_async/static/comments_async/comment.jsx +++ b/adhocracy4/comments_async/static/comments_async/comment.jsx @@ -207,20 +207,24 @@ export default class Comment extends React.Component { comment = (
{this.props.is_moderator_marked - ? + ? ( + + + {content} + + + ) + : ( {content} - // eslint-disable-line react/jsx-closing-tag-location - : - {content} - /* eslint-disable-line react/jsx-closing-tag-location */} + )}
) } diff --git a/adhocracy4/comments_async/static/comments_async/filter_category.jsx b/adhocracy4/comments_async/static/comments_async/filter_category.jsx index 435d90a03..2d4803d4a 100644 --- a/adhocracy4/comments_async/static/comments_async/filter_category.jsx +++ b/adhocracy4/comments_async/static/comments_async/filter_category.jsx @@ -40,6 +40,6 @@ export const FilterCategory = ({ })} - // eslint-disable-line react/jsx-closing-tag-location + ) }