Enable ESLint react/no-deprecated (#24471)
This commit is contained in:
@@ -59,7 +59,7 @@ class ModifierPickerMenu extends React.PureComponent {
|
||||
this.props.onSelect(e.currentTarget.getAttribute('data-index') * 1);
|
||||
};
|
||||
|
||||
componentWillReceiveProps (nextProps) {
|
||||
UNSAFE_componentWillReceiveProps (nextProps) {
|
||||
if (nextProps.active) {
|
||||
this.attachListeners();
|
||||
} else {
|
||||
|
@@ -212,7 +212,7 @@ class PrivacyDropdown extends React.PureComponent {
|
||||
this.props.onChange(value);
|
||||
};
|
||||
|
||||
componentWillMount () {
|
||||
UNSAFE_componentWillMount () {
|
||||
const { intl: { formatMessage } } = this.props;
|
||||
|
||||
this.options = [
|
||||
|
Reference in New Issue
Block a user