Skip to content

Commit

Permalink
feat(message-info-overview-panel): add highlighter for mentions in me…
Browse files Browse the repository at this point in the history
…ssage content (#1973)
  • Loading branch information
domw30 authored Jun 4, 2024
1 parent cf26c21 commit 9457271
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { PanelHeader } from '../../list/panel-header';
import { CitizenListItem } from '../../../citizen-list-item';
import { ScrollbarContainer } from '../../../scrollbar-container';
import { User } from '../../../../store/channels';
import { ContentHighlighter } from '../../../content-highlighter';

import './styles.scss';
import moment from 'moment';
Expand Down Expand Up @@ -35,7 +36,9 @@ export class OverviewPanel extends React.Component<Properties> {
<div {...cn('message-container')}>
{this.props.message && (
<div {...cn('message-content-container')}>
<div {...cn('message-content')}>{this.props.message}</div>
<div {...cn('message-content')}>
<ContentHighlighter message={this.props.message} />
</div>
</div>
)}
{this.renderTime()}
Expand Down

0 comments on commit 9457271

Please sign in to comment.