Skip to content

Commit

Permalink
Remove stray reference to React.PropTypes in ReactLink (#9757)
Browse files Browse the repository at this point in the history
**what is the change?:**
It looks like we missed updating this callsite in 12a96b9

**why make this change?:**
We are deprecating the `React.PropTypes` syntax and splitting that functionality into [a separate module](12a96b9).
@acdlite please correct me if there is a reason we left this here.

**test plan:**
`yarn test`

**issue:**
#9755
  • Loading branch information
flarnie authored May 24, 2017
1 parent 413c7b5 commit d97317e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/addons/link/ReactLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* consumption of ReactLink easier; see LinkedValueUtils and LinkedStateMixin.
*/

var PropTypes = require('prop-types');
var React = require('React');

/**
Expand All @@ -59,11 +60,11 @@ function ReactLink(value, requestChange) {
function createLinkTypeChecker(linkType) {
var shapes = {
value: linkType === undefined
? React.PropTypes.any.isRequired
? PropTypes.any.isRequired
: linkType.isRequired,
requestChange: React.PropTypes.func.isRequired,
requestChange: PropTypes.func.isRequired,
};
return React.PropTypes.shape(shapes);
return PropTypes.shape(shapes);
}

ReactLink.PropTypes = {
Expand Down

0 comments on commit d97317e

Please sign in to comment.