зеркало из https://github.com/mozilla/treeherder.git
upgrade react to 17.0.2 (#7298)
This commit is contained in:
Родитель
0f2cd18e7a
Коммит
bf87a56cfb
|
@ -38,9 +38,9 @@
|
|||
"pako": "1.0.11",
|
||||
"prop-types": "15.7.2",
|
||||
"query-string": "7.0.1",
|
||||
"react": "16.13.1",
|
||||
"react": "17.0.2",
|
||||
"react-dates": "21.5.1",
|
||||
"react-dom": "16.13.1",
|
||||
"react-dom": "17.0.2",
|
||||
"react-helmet": "6.0.0",
|
||||
"react-highlight-words": "0.16.0",
|
||||
"react-hot-keys": "2.5.2",
|
||||
|
|
|
@ -93,9 +93,7 @@ export const isUnclassifiedFailure = function isUnclassifiedFailure(job) {
|
|||
// Fetch the React instance of an object from a DOM element.
|
||||
// Credit for this approach goes to SO: https://stackoverflow.com/a/48335220/333614
|
||||
export const findInstance = function findInstance(el) {
|
||||
const key = Object.keys(el).find((key) =>
|
||||
key.startsWith('__reactInternalInstance$'),
|
||||
);
|
||||
const key = Object.keys(el).find((key) => key.startsWith('__reactFiber$'));
|
||||
if (key) {
|
||||
const fiberNode = el[key];
|
||||
return fiberNode && fiberNode.return && fiberNode.return.stateNode;
|
||||
|
|
1330
yarn.lock
1330
yarn.lock
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче