Skip to content

Commit

Permalink
comments_async: fix some linting errors after the update of eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Nov 27, 2024
1 parent f219ffa commit 4d39191
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
20 changes: 12 additions & 8 deletions adhocracy4/comments_async/static/comments_async/comment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,20 +207,24 @@ export default class Comment extends React.Component {
comment = (
<div className={'a4-comments__text' + (this.state.anchored ? ' a4-comments__text--highlighted' : '')}>
{this.props.is_moderator_marked
? <mark>
? (
<mark>
<ReactMarkdown
disallowedElements={['h1', 'h2', 'h3', 'h4', 'input', 'table', 'thead', 'tr', 'th']}
unwrapDisallowed
>
{content}
</ReactMarkdown>
</mark>
)
: (
<ReactMarkdown
disallowedElements={['h1', 'h2', 'h3', 'h4', 'input', 'table', 'thead', 'tr', 'th']}
unwrapDisallowed
>
{content}
</ReactMarkdown>
</mark>// eslint-disable-line react/jsx-closing-tag-location
: <ReactMarkdown
disallowedElements={['h1', 'h2', 'h3', 'h4', 'input', 'table', 'thead', 'tr', 'th']}
unwrapDisallowed
>
{content}
</ReactMarkdown>/* eslint-disable-line react/jsx-closing-tag-location */}
)}
</div>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ export const FilterCategory = ({
})}
</div>
</div>
</div> // eslint-disable-line react/jsx-closing-tag-location
</div>
)
}

0 comments on commit 4d39191

Please sign in to comment.