Skip to content

Commit c8f6eff

Browse files
committed
Don't use deprecated React.PropTypes API
1 parent c86dca2 commit c8f6eff

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ as of release version 2.1.0.
2727
- Don't react on hover when disabled
2828
- Fix issue with broken React ref
2929
- Fix lint errors
30+
- Don't use deprecated `React.PropTypes` API
3031

3132

3233
## [2.1.1] - 2016-07-13

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
},
6262
"peerDependencies": {
6363
"react": "^15.3.0",
64-
"react-dom": "^15.3.0"
64+
"react-dom": "^15.3.0",
65+
"prop-types": "^15.3.0"
6566
}
6667
}

src/component/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, { PureComponent, PropTypes } from 'react'
1+
import React, { PureComponent } from 'react'
22
import classNames from 'classnames'
3+
import PropTypes from 'prop-types'
34
import Check from './check'
45
import X from './x'
56
import { pointerCoord } from './util'

0 commit comments

Comments
 (0)