mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 11:47:23 +03:00
These can be pure components
This commit is contained in:
parent
72b1ad37a2
commit
06c0bce053
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import { _t, pickBestLanguage } from '../../../languageHandler';
|
|||
|
||||
import Matrix from 'matrix-js-sdk';
|
||||
|
||||
class TermsCheckbox extends React.Component {
|
||||
class TermsCheckbox extends React.PureComponent {
|
||||
static propTypes = {
|
||||
onChange: PropTypes.func.isRequired,
|
||||
url: PropTypes.string.isRequired,
|
||||
|
@ -41,7 +41,7 @@ class TermsCheckbox extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
export default class TermsDialog extends React.Component {
|
||||
export default class TermsDialog extends React.PureComponent {
|
||||
static propTypes = {
|
||||
/**
|
||||
* Array of TermsWithService
|
||||
|
|
Loading…
Reference in a new issue