diff --git a/package.json b/package.json index e22ad10..86538fd 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,8 @@ "peerDependencies": { "co": ">=4.6.0", "react": ">=0.14.0", - "oidc-client": ">=1.2.0" + "oidc-client": ">=1.2.0", + "prop-types": ">=15.5.0" }, "optionalDependencies": { "immutable": ">=3.6.0" diff --git a/src/CallbackComponent.js b/src/CallbackComponent.js index dc6599e..8b86189 100644 --- a/src/CallbackComponent.js +++ b/src/CallbackComponent.js @@ -1,4 +1,5 @@ -import React, { PropTypes } from 'react'; +import PropTypes from 'prop-types'; +import React from 'react'; import { redirectSuccess } from './actions'; class CallbackComponent extends React.Component { diff --git a/src/OidcProvider.js b/src/OidcProvider.js index e1df147..746c50f 100644 --- a/src/OidcProvider.js +++ b/src/OidcProvider.js @@ -1,4 +1,5 @@ -import React, { PropTypes } from 'react'; +import PropTypes from 'prop-types'; +import React from 'react'; import { userExpired, userFound, silentRenewError, sessionTerminated, userExpiring, userSignedOut } from './actions'; class OidcProvider extends React.Component {