You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
These can be pure components
This commit is contained in:
@@ -22,7 +22,7 @@ import { _t, pickBestLanguage } from '../../../languageHandler';
|
|||||||
|
|
||||||
import Matrix from 'matrix-js-sdk';
|
import Matrix from 'matrix-js-sdk';
|
||||||
|
|
||||||
class TermsCheckbox extends React.Component {
|
class TermsCheckbox extends React.PureComponent {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
onChange: PropTypes.func.isRequired,
|
onChange: PropTypes.func.isRequired,
|
||||||
url: PropTypes.string.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 = {
|
static propTypes = {
|
||||||
/**
|
/**
|
||||||
* Array of TermsWithService
|
* Array of TermsWithService
|
||||||
|
|||||||
Reference in New Issue
Block a user