chore: remove theme from comment content

This commit is contained in:
Paul Mineev 2023-11-25 03:14:18 -05:00 committed by Umputun
parent e043dc2ac3
commit 82c617806d
2 changed files with 3 additions and 5 deletions

View File

@ -515,9 +515,7 @@ export class CommentForm extends Component<Props, State> {
!!preview && (
<div className="comment-form__preview-wrapper">
<div
className={b('comment-form__preview', {
mix: b('raw-content', {}, { theme }),
})}
className="comment-form__preview raw-content"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: preview }}
/>

View File

@ -354,7 +354,7 @@ export class Comment extends Component<CommentProps, State> {
)}
</div>{' '}
<div
className={b('comment__text', { mix: b('raw-content', {}, { theme: props.theme }) })}
className="comment__text raw-content"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: o.text }}
/>
@ -473,7 +473,7 @@ export class Comment extends Component<CommentProps, State> {
<div className="comment__body">
{(!props.collapsed || props.view === 'pinned') && (
<div
className={b('comment__text', { mix: b('raw-content', {}, { theme: props.theme }) })}
className="comment__text raw-content"
ref={this.textNode}
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{ __html: o.text }}