Appease the linter by turning it off

pull/21833/head
Travis Ralston 2020-04-01 14:45:54 -06:00
parent f2c41a5da7
commit 5c2841323e
9 changed files with 9 additions and 9 deletions

View File

@ -124,7 +124,7 @@ export default class RightPanel extends React.Component {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // TODO: [REACT-WARNING] Replace with appropriate lifecycle event
UNSAFE_componentWillReceiveProps(newProps) { UNSAFE_componentWillReceiveProps(newProps) { // eslint-disable-line camelcase
if (newProps.groupId !== this.props.groupId) { if (newProps.groupId !== this.props.groupId) {
this._unregisterGroupStore(this.props.groupId); this._unregisterGroupStore(this.props.groupId);
this._initGroupStore(newProps.groupId); this._initGroupStore(newProps.groupId);

View File

@ -73,7 +73,7 @@ export default class ServerConfig extends React.PureComponent {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // 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 && if (newProps.serverConfig.hsUrl === this.state.hsUrl &&
newProps.serverConfig.isUrl === this.state.isUrl) return; newProps.serverConfig.isUrl === this.state.isUrl) return;

View File

@ -268,7 +268,7 @@ class FilteredList extends React.PureComponent {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // 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; if (this.props.children === nextProps.children && this.props.query === nextProps.query) return;
this.setState({ this.setState({
filteredChildren: FilteredList.filterChildren(nextProps.children, nextProps.query), filteredChildren: FilteredList.filterChildren(nextProps.children, nextProps.query),

View File

@ -263,7 +263,7 @@ export default class AppTile extends React.Component {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // 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) { if (nextProps.app.url !== this.props.app.url) {
this._getNewState(nextProps); this._getNewState(nextProps);
// Fetch IM token for new URL if we're showing and have permission to load // Fetch IM token for new URL if we're showing and have permission to load

View File

@ -129,7 +129,7 @@ export default class Dropdown extends React.Component {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // 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) { if (!nextProps.children || nextProps.children.length === 0) {
return; return;
} }

View File

@ -82,7 +82,7 @@ export default class Flair extends React.Component {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // TODO: [REACT-WARNING] Replace with appropriate lifecycle event
UNSAFE_componentWillReceiveProps(newProps) { UNSAFE_componentWillReceiveProps(newProps) { // eslint-disable-line camelcase
this._generateAvatars(newProps.groups); this._generateAvatars(newProps.groups);
} }

View File

@ -83,7 +83,7 @@ const Pill = createReactClass({
}, },
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // TODO: [REACT-WARNING] Replace with appropriate lifecycle event
async UNSAFE_componentWillReceiveProps(nextProps) { async UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line new-cap
let resourceId; let resourceId;
let prefix; let prefix;

View File

@ -59,7 +59,7 @@ export class EmailAddress extends React.Component {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // TODO: [REACT-WARNING] Replace with appropriate lifecycle event
UNSAFE_componentWillReceiveProps(nextProps) { UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase
const { bound } = nextProps.email; const { bound } = nextProps.email;
this.setState({ bound }); this.setState({ bound });
} }

View File

@ -51,7 +51,7 @@ export class PhoneNumber extends React.Component {
} }
// TODO: [REACT-WARNING] Replace with appropriate lifecycle event // TODO: [REACT-WARNING] Replace with appropriate lifecycle event
UNSAFE_componentWillReceiveProps(nextProps) { UNSAFE_componentWillReceiveProps(nextProps) { // eslint-disable-line camelcase
const { bound } = nextProps.msisdn; const { bound } = nextProps.msisdn;
this.setState({ bound }); this.setState({ bound });
} }