Skip to content

Commit 80e87c4

Browse files
committed
Remove stray reference to React.PropTypes in ReactLink (facebook#9757)
**what is the change?:** It looks like we missed updating this callsite in facebook@12a96b9 **why make this change?:** We are deprecating the `React.PropTypes` syntax and splitting that functionality into [a separate module](facebook@12a96b9). @acdlite please correct me if there is a reason we left this here. **test plan:** `yarn test` **issue:** facebook#9755
1 parent b0b592c commit 80e87c4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/addons/link/ReactLink.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
* consumption of ReactLink easier; see LinkedValueUtils and LinkedStateMixin.
3535
*/
3636

37+
var PropTypes = require('prop-types');
3738
var React = require('React');
3839

3940
/**
@@ -59,11 +60,11 @@ function ReactLink(value, requestChange) {
5960
function createLinkTypeChecker(linkType) {
6061
var shapes = {
6162
value: linkType === undefined
62-
? React.PropTypes.any.isRequired
63+
? PropTypes.any.isRequired
6364
: linkType.isRequired,
64-
requestChange: React.PropTypes.func.isRequired,
65+
requestChange: PropTypes.func.isRequired,
6566
};
66-
return React.PropTypes.shape(shapes);
67+
return PropTypes.shape(shapes);
6768
}
6869

6970
ReactLink.PropTypes = {

0 commit comments

Comments
 (0)