use PureComponent
This commit is contained in:
parent
929020a139
commit
d606c966ea
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import sdk from "../../../index";
|
|||
import {wantsDateSeparator} from '../../../DateUtils';
|
||||
import SettingsStore from '../../../settings/SettingsStore';
|
||||
|
||||
export default class MessageEditHistoryDialog extends React.Component {
|
||||
export default class MessageEditHistoryDialog extends React.PureComponent {
|
||||
static propTypes = {
|
||||
mxEvent: PropTypes.object.isRequired,
|
||||
};
|
||||
|
|
|
@ -21,7 +21,7 @@ import {formatTime} from '../../../DateUtils';
|
|||
import {MatrixEvent} from 'matrix-js-sdk';
|
||||
import {pillifyLinks} from '../../../utils/pillify';
|
||||
|
||||
export default class EditHistoryMessage extends React.Component {
|
||||
export default class EditHistoryMessage extends React.PureComponent {
|
||||
static propTypes = {
|
||||
// the message event being edited
|
||||
mxEvent: PropTypes.instanceOf(MatrixEvent).isRequired,
|
||||
|
|
Loading…
Reference in a new issue