fix(xo-web/backup/restore): don't use UNSAFE_componentWillReceiveProps (#6364)

Introduced by 7d6e832226

`UNSAFE_componentWillReceiveProps` method was only introduced in React 16 but we
are using React 15
`.eslintrc`: ask eslint to check the React version so that it doesn't suggest to
change it to `UNSAFE_componentWillReceiveProps`
This commit is contained in:
Pierre Donias
2022-08-11 11:19:07 +02:00
committed by GitHub
parent 4bed4195ac
commit 18d03a076b
3 changed files with 9 additions and 1 deletions

View File

@@ -30,4 +30,9 @@ module.exports = {
},
},
],
settings: {
react: {
version: 'detect',
},
},
}