Skip to content

Commit cdf1369

Browse files
Calyhretimdorr
authored andcommitted
Fix deprecation warnings for react >= 15.5.0 (#663)
1 parent 747c649 commit cdf1369

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@
100100
"invariant": "^2.0.0",
101101
"lodash": "^4.2.0",
102102
"lodash-es": "^4.2.0",
103-
"loose-envify": "^1.1.0"
103+
"loose-envify": "^1.1.0",
104+
"prop-types": "^15.0.0"
104105
},
105106
"peerDependencies": {
106107
"react": "^0.14.0 || ^15.0.0-0 || ^16.0.0-0",

src/components/Provider.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { Component, PropTypes, Children } from 'react'
1+
import { Component, Children } from 'react'
2+
import PropTypes from 'prop-types'
23
import { storeShape, subscriptionShape } from '../utils/PropTypes'
34
import warning from '../utils/warning'
45

src/utils/PropTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PropTypes } from 'react'
1+
import PropTypes from 'prop-types'
22

33
export const subscriptionShape = PropTypes.shape({
44
trySubscribe: PropTypes.func.isRequired,

0 commit comments

Comments
 (0)