Disable the linter on lines it complaints about UNSAFE_componentWillMount
This commit is contained in:
parent
0a6f54da33
commit
6d0d77f98e
6 changed files with 6 additions and 6 deletions
|
@ -117,7 +117,7 @@ export default class Dropdown extends React.Component {
|
|||
}
|
||||
|
||||
// TODO: [REACT-WARNING] Replace component with real class, use constructor for refs
|
||||
UNSAFE_componentWillMount() {
|
||||
UNSAFE_componentWillMount() { // eslint-disable-line camelcase
|
||||
this._button = createRef();
|
||||
// Listen for all clicks on the document so we can close the
|
||||
// menu when the user clicks somewhere else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue