From 4887c69eb832c8ea45d0ae1c96e38b1aa3a589bc Mon Sep 17 00:00:00 2001 From: Hypnosphi Date: Tue, 10 Apr 2018 01:17:26 +0300 Subject: [PATCH] Move react-lifecycles-compat to `dependencies` and upgrade it to v3 --- package.json | 2 +- src/components/Modal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index dfe8549f..284ca2aa 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,6 @@ "prettier": "^1.7.4", "react": "^16.0.0", "react-dom": "^16.0.0", - "react-lifecycles-compat": "^1.1.0", "react-router": "^4.2.0", "react-router-dom": "^4.2.2", "should": "^13.1.0", @@ -64,6 +63,7 @@ "dependencies": { "exenv": "^1.2.0", "prop-types": "^15.5.10", + "react-lifecycles-compat": "^3.0.0", "warning": "^3.0.0" }, "peerDependencies": { diff --git a/src/components/Modal.js b/src/components/Modal.js index 6beedf12..b8246a64 100644 --- a/src/components/Modal.js +++ b/src/components/Modal.js @@ -5,7 +5,7 @@ import ModalPortal from "./ModalPortal"; import * as ariaAppHider from "../helpers/ariaAppHider"; import SafeHTMLElement, { canUseDOM } from "../helpers/safeHTMLElement"; -import polyfill from "react-lifecycles-compat"; +import { polyfill } from "react-lifecycles-compat"; export const portalClassName = "ReactModalPortal"; export const bodyOpenClassName = "ReactModal__Body--open";