Skip to content

Commit

Permalink
Merge pull request #19 from Shastel/master
Browse files Browse the repository at this point in the history
Use prop-types instead of React.propTypes
  • Loading branch information
kkwiatkowski committed May 21, 2017
2 parents ce05c52 + 6adb7a3 commit a19ac00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"url": "https://github.com/CezaryDanielNowak/React-dotdotdot/issues"
},
"homepage": "https://github.com/CezaryDanielNowak/React-dotdotdot#readme",
"dependencies": {},
"dependencies": {
"prop-types": "^15.5.10"
},
"peerDependencies": {
"react": "^0.14.3 || ^15.0.0",
"react-dom": "^0.14.3 || ^15.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var React = require('react');
var ReactDOM = require('react-dom');
var clamp = require('./clamp.js');
var PropTypes = React.PropTypes;
var PropTypes = require('prop-types');
/**
* multuline text-overflow: ellipsis
*/
Expand Down

0 comments on commit a19ac00

Please sign in to comment.