Skip to content

Commit acd87de

Browse files
authored
Merge pull request #224 from tomra-digital/external-prop-types
Use external prop-types package rather than React.PropTypes
2 parents f716a7f + 3ed14c0 commit acd87de

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
"mocha": "^3.0.0",
6262
"phantomjs-polyfill": "0.0.2",
6363
"phantomjs-prebuilt": "^2.1.9",
64+
"prop-types": "^15.5.0",
6465
"purecss": "^0.6.0",
6566
"react": "^15.2.1",
6667
"react-addons-test-utils": "^15.3.0",
@@ -75,6 +76,7 @@
7576
"webpack-merge": "^0.14.0"
7677
},
7778
"peerDependencies": {
79+
"prop-types": ">= 15.5.0",
7880
"react": ">= 0.11.2 < 16.0.0",
7981
"react-dom": ">= 0.11.2 < 16.0.0"
8082
},

src/components/tooltip.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import React, {PropTypes} from 'react';
1+
import React from 'react';
22
import ReactDOM from 'react-dom';
3+
import PropTypes from 'prop-types';
34

45
export default class Tooltip extends React.Component {
56
static propTypes = {
@@ -127,4 +128,4 @@ export default class Tooltip extends React.Component {
127128
</div>
128129
)
129130
}
130-
}
131+
}

0 commit comments

Comments
 (0)