Skip to content

Commit 4887c69

Browse files
Hypnosphidiasbruno
authored andcommitted
Move react-lifecycles-compat to dependencies and upgrade it to v3
1 parent f748406 commit 4887c69

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"prettier": "^1.7.4",
5353
"react": "^16.0.0",
5454
"react-dom": "^16.0.0",
55-
"react-lifecycles-compat": "^1.1.0",
5655
"react-router": "^4.2.0",
5756
"react-router-dom": "^4.2.2",
5857
"should": "^13.1.0",
@@ -64,6 +63,7 @@
6463
"dependencies": {
6564
"exenv": "^1.2.0",
6665
"prop-types": "^15.5.10",
66+
"react-lifecycles-compat": "^3.0.0",
6767
"warning": "^3.0.0"
6868
},
6969
"peerDependencies": {

Diff for: src/components/Modal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import ModalPortal from "./ModalPortal";
55
import * as ariaAppHider from "../helpers/ariaAppHider";
66
import SafeHTMLElement, { canUseDOM } from "../helpers/safeHTMLElement";
77

8-
import polyfill from "react-lifecycles-compat";
8+
import { polyfill } from "react-lifecycles-compat";
99

1010
export const portalClassName = "ReactModalPortal";
1111
export const bodyOpenClassName = "ReactModal__Body--open";

0 commit comments

Comments
 (0)