Mark KeyBackupPanel as a pure component
KeyBackupPanel depends only on its own state and its children are pure, so it can be pure as well. This avoids some unnecessary re-renders.
This commit is contained in:
parent
2bfe6e7500
commit
7dbc970347
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ import MatrixClientPeg from '../../../MatrixClientPeg';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t } from '../../../languageHandler';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
|
|
||||||
export default class KeyBackupPanel extends React.Component {
|
export default class KeyBackupPanel extends React.PureComponent {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue