use PureComponent

pull/21833/head
Bruno Windels 2019-06-26 16:12:44 +02:00
parent 929020a139
commit d606c966ea
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ import sdk from "../../../index";
import {wantsDateSeparator} from '../../../DateUtils'; import {wantsDateSeparator} from '../../../DateUtils';
import SettingsStore from '../../../settings/SettingsStore'; import SettingsStore from '../../../settings/SettingsStore';
export default class MessageEditHistoryDialog extends React.Component { export default class MessageEditHistoryDialog extends React.PureComponent {
static propTypes = { static propTypes = {
mxEvent: PropTypes.object.isRequired, mxEvent: PropTypes.object.isRequired,
}; };

View File

@ -21,7 +21,7 @@ import {formatTime} from '../../../DateUtils';
import {MatrixEvent} from 'matrix-js-sdk'; import {MatrixEvent} from 'matrix-js-sdk';
import {pillifyLinks} from '../../../utils/pillify'; import {pillifyLinks} from '../../../utils/pillify';
export default class EditHistoryMessage extends React.Component { export default class EditHistoryMessage extends React.PureComponent {
static propTypes = { static propTypes = {
// the message event being edited // the message event being edited
mxEvent: PropTypes.instanceOf(MatrixEvent).isRequired, mxEvent: PropTypes.instanceOf(MatrixEvent).isRequired,