From 5564409970e8b3aa028a1b478ca58fc6c55bff9b Mon Sep 17 00:00:00 2001 From: withgit-contributor Date: Tue, 23 May 2017 18:39:17 -0700 Subject: [PATCH] Remove stray reference to React.PropTypes in ReactLink **what is the change?:** It looks like we missed updating this callsite in https://github.com/facebook/react/commit/12a96b94823d6b6de6b1ac13bd576864abd50175 **why make this change?:** We are deprecating the `React.PropTypes` syntax and splitting that functionality into [a separate module](https://github.com/facebook/react/commit/12a96b94823d6b6de6b1ac13bd576864abd50175). please correct me if there is a reason we left this here. **test plan:** `yarn test` **issue:** https://github.com/with-git/react/issues/1 --- src/addons/link/ReactLink.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/addons/link/ReactLink.js b/src/addons/link/ReactLink.js index 22e71d55..3c6d5524 100644 --- a/src/addons/link/ReactLink.js +++ b/src/addons/link/ReactLink.js @@ -34,6 +34,7 @@ * consumption of ReactLink easier; see LinkedValueUtils and LinkedStateMixin. */ +var PropTypes = require('prop-types'); var React = require('React'); /** @@ -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 = {