Skip to content

Commit

Permalink
Fix references to React.createClass and React.PropTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
acdlite committed Apr 6, 2017
1 parent d11c546 commit 12a96b9
Show file tree
Hide file tree
Showing 7 changed files with 1,113 additions and 75 deletions.
1 change: 1 addition & 0 deletions addons/react-linked-input/.babelrc
@@ -1,3 +1,4 @@
{
"presets": ["es2015"],
"plugins": ["transform-react-jsx-source"]
}
8 changes: 4 additions & 4 deletions addons/react-linked-input/index.js
Expand Up @@ -9,9 +9,10 @@

'use strict';

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

const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';

function makeEmptyFunction(arg) {
return function () {
Expand Down Expand Up @@ -171,7 +172,7 @@ var propTypes = {
'set either `onChange` or `readOnly`.'
);
},
onChange: React.PropTypes.func,
onChange: PropTypes.func,
};

var loggedTypeFailures = {};
Expand Down Expand Up @@ -267,4 +268,3 @@ class LinkedInput extends React.Component {
}

module.exports = LinkedInput;

1 change: 1 addition & 0 deletions addons/react-linked-input/package.json
Expand Up @@ -27,6 +27,7 @@
],
"license": "BSD-3-Clause",
"devDependencies": {
"babel-preset-es2015": "^6.24.0",
"jest": "^19.0.2",
"react": "^15.4.2",
"react-dom": "^15.4.2"
Expand Down
845 changes: 781 additions & 64 deletions addons/react-linked-input/react-linked-input.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion addons/react-linked-input/react-linked-input.min.js

Large diffs are not rendered by default.

0 comments on commit 12a96b9

Please sign in to comment.