Skip to content

Commit 12a96b9

Browse files
committed
Fix references to React.createClass and React.PropTypes
1 parent d11c546 commit 12a96b9

File tree

7 files changed

+1113
-75
lines changed

7 files changed

+1113
-75
lines changed

addons/react-linked-input/.babelrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"presets": ["es2015"],
23
"plugins": ["transform-react-jsx-source"]
34
}

addons/react-linked-input/index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@
99

1010
'use strict';
1111

12-
var React = require('React');
12+
var React = require('react');
13+
var PropTypes = require('prop-types');
1314

14-
const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
15+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
1516

1617
function makeEmptyFunction(arg) {
1718
return function () {
@@ -171,7 +172,7 @@ var propTypes = {
171172
'set either `onChange` or `readOnly`.'
172173
);
173174
},
174-
onChange: React.PropTypes.func,
175+
onChange: PropTypes.func,
175176
};
176177

177178
var loggedTypeFailures = {};
@@ -267,4 +268,3 @@ class LinkedInput extends React.Component {
267268
}
268269

269270
module.exports = LinkedInput;
270-

addons/react-linked-input/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
],
2828
"license": "BSD-3-Clause",
2929
"devDependencies": {
30+
"babel-preset-es2015": "^6.24.0",
3031
"jest": "^19.0.2",
3132
"react": "^15.4.2",
3233
"react-dom": "^15.4.2"

addons/react-linked-input/react-linked-input.js

+781-64
Large diffs are not rendered by default.

addons/react-linked-input/react-linked-input.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)