Permalink
Browse files

Fix references to React.createClass and React.PropTypes

  • Loading branch information...
acdlite committed Apr 6, 2017
1 parent d11c546 commit 12a96b94823d6b6de6b1ac13bd576864abd50175
@@ -1,3 +1,4 @@
{
+ "presets": ["es2015"],
"plugins": ["transform-react-jsx-source"]
}
@@ -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 () {
@@ -171,7 +172,7 @@ var propTypes = {
'set either `onChange` or `readOnly`.'
);
},
- onChange: React.PropTypes.func,
+ onChange: PropTypes.func,
};
var loggedTypeFailures = {};
@@ -267,4 +268,3 @@ class LinkedInput extends React.Component {
}
module.exports = LinkedInput;
-
@@ -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"

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 12a96b9

Please sign in to comment.