From 5c2841323e58d5b22f488a3fc47607b9387a8463 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 1 Apr 2020 14:45:54 -0600 Subject: [PATCH] Appease the linter by turning it off --- src/components/structures/RightPanel.js | 2 +- src/components/views/auth/ServerConfig.js | 2 +- src/components/views/dialogs/DevtoolsDialog.js | 2 +- src/components/views/elements/AppTile.js | 2 +- src/components/views/elements/Dropdown.js | 2 +- src/components/views/elements/Flair.js | 2 +- src/components/views/elements/Pill.js | 2 +- src/components/views/settings/discovery/EmailAddresses.js | 2 +- src/components/views/settings/discovery/PhoneNumbers.js | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 856a3764a1..3c97d2f4ae 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -124,7 +124,7 @@ export default class RightPanel extends React.Component { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(newProps) { + UNSAFE_componentWillReceiveProps(newProps) { // eslint-disable-line camelcase if (newProps.groupId !== this.props.groupId) { this._unregisterGroupStore(this.props.groupId); this._initGroupStore(newProps.groupId); diff --git a/src/components/views/auth/ServerConfig.js b/src/components/views/auth/ServerConfig.js index 7ec4311d2f..ee6f57a521 100644 --- a/src/components/views/auth/ServerConfig.js +++ b/src/components/views/auth/ServerConfig.js @@ -73,7 +73,7 @@ export default class ServerConfig extends React.PureComponent { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(newProps) { + UNSAFE_componentWillReceiveProps(newProps) { // eslint-disable-line camelcase if (newProps.serverConfig.hsUrl === this.state.hsUrl && newProps.serverConfig.isUrl === this.state.isUrl) return; diff --git a/src/components/views/dialogs/DevtoolsDialog.js b/src/components/views/dialogs/DevtoolsDialog.js index a07750a768..de0923306f 100644 --- a/src/components/views/dialogs/DevtoolsDialog.js +++ b/src/components/views/dialogs/DevtoolsDialog.js @@ -268,7 +268,7 @@ class FilteredList extends React.PureComponent { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase if (this.props.children === nextProps.children && this.props.query === nextProps.query) return; this.setState({ filteredChildren: FilteredList.filterChildren(nextProps.children, nextProps.query), diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 7696db9cf6..c49510b8b6 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -263,7 +263,7 @@ export default class AppTile extends React.Component { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase if (nextProps.app.url !== this.props.app.url) { this._getNewState(nextProps); // Fetch IM token for new URL if we're showing and have permission to load diff --git a/src/components/views/elements/Dropdown.js b/src/components/views/elements/Dropdown.js index 2651f8e039..6b3efb5ee1 100644 --- a/src/components/views/elements/Dropdown.js +++ b/src/components/views/elements/Dropdown.js @@ -129,7 +129,7 @@ export default class Dropdown extends React.Component { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase if (!nextProps.children || nextProps.children.length === 0) { return; } diff --git a/src/components/views/elements/Flair.js b/src/components/views/elements/Flair.js index a8c804c534..bc657e9e91 100644 --- a/src/components/views/elements/Flair.js +++ b/src/components/views/elements/Flair.js @@ -82,7 +82,7 @@ export default class Flair extends React.Component { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(newProps) { + UNSAFE_componentWillReceiveProps(newProps) { // eslint-disable-line camelcase this._generateAvatars(newProps.groups); } diff --git a/src/components/views/elements/Pill.js b/src/components/views/elements/Pill.js index 1e31c634f7..0b60d7093b 100644 --- a/src/components/views/elements/Pill.js +++ b/src/components/views/elements/Pill.js @@ -83,7 +83,7 @@ const Pill = createReactClass({ }, // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - async UNSAFE_componentWillReceiveProps(nextProps) { + async UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line new-cap let resourceId; let prefix; diff --git a/src/components/views/settings/discovery/EmailAddresses.js b/src/components/views/settings/discovery/EmailAddresses.js index 3a5a28fc43..f9a1ba1818 100644 --- a/src/components/views/settings/discovery/EmailAddresses.js +++ b/src/components/views/settings/discovery/EmailAddresses.js @@ -59,7 +59,7 @@ export class EmailAddress extends React.Component { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase const { bound } = nextProps.email; this.setState({ bound }); } diff --git a/src/components/views/settings/discovery/PhoneNumbers.js b/src/components/views/settings/discovery/PhoneNumbers.js index 813623b7b9..03f459ee15 100644 --- a/src/components/views/settings/discovery/PhoneNumbers.js +++ b/src/components/views/settings/discovery/PhoneNumbers.js @@ -51,7 +51,7 @@ export class PhoneNumber extends React.Component { } // TODO: [REACT-WARNING] Replace with appropriate lifecycle event - UNSAFE_componentWillReceiveProps(nextProps) { + UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase const { bound } = nextProps.msisdn; this.setState({ bound }); }