Skip to content

Commit 9572ae1

Browse files
committed
use prop-types package
1 parent b66e5f6 commit 9572ae1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"umd": "3.0.1"
3535
},
3636
"peerDependenies": {
37-
"react": "^0.14.0 || ^15.0"
37+
"react": ">=0.14",
38+
"prop-types": "~0.15"
3839
}
3940
}

src/InputHints.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const React = require('react')
2-
const {Component, PropTypes} = React
2+
const {Component} = React
3+
const PropTypes = require('prop-types')
34

45
const TICK_INIT = 'TICK_INIT'
56
const TICK_WRITE = 'TICK_WRITE'

0 commit comments

Comments
 (0)