We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 413c7b5 commit b192c04Copy full SHA for b192c04
1 file changed
src/addons/link/ReactLink.js
@@ -48,26 +48,5 @@ function ReactLink(value, requestChange) {
48
this.requestChange = requestChange;
49
}
50
51
-/**
52
- * Creates a PropType that enforces the ReactLink API and optionally checks the
53
- * type of the value being passed inside the link. Example:
54
- *
55
- * MyComponent.propTypes = {
56
- * tabIndexLink: ReactLink.PropTypes.link(React.PropTypes.number)
57
- * }
58
- */
59
-function createLinkTypeChecker(linkType) {
60
- var shapes = {
61
- value: linkType === undefined
62
- ? React.PropTypes.any.isRequired
63
- : linkType.isRequired,
64
- requestChange: React.PropTypes.func.isRequired,
65
- };
66
- return React.PropTypes.shape(shapes);
67
-}
68
-
69
-ReactLink.PropTypes = {
70
- link: createLinkTypeChecker,
71
-};
72
73
module.exports = ReactLink;
0 commit comments