mirror of https://github.com/vector-im/riot-web
use PureComponent
parent
929020a139
commit
d606c966ea
|
@ -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,
|
||||||
};
|
};
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue