1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

.required => .isRequired

This commit is contained in:
diminator 2015-09-21 10:47:24 +02:00
parent 9d67d046d0
commit 2486158c12
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ let LoanRequestAnswerForm = React.createClass({
url: React.PropTypes.string, url: React.PropTypes.string,
id: React.PropTypes.object, id: React.PropTypes.object,
message: React.PropTypes.string, message: React.PropTypes.string,
handleSuccess: React.PropTypes.func.required handleSuccess: React.PropTypes.func.isRequired
}, },
getDefaultProps() { getDefaultProps() {

View File

@ -19,8 +19,8 @@ import { getLangText } from '../../utils/lang_utils';
let AccountSettings = React.createClass({ let AccountSettings = React.createClass({
propTypes: { propTypes: {
currentUser: React.PropTypes.object.required, currentUser: React.PropTypes.object.isRequired,
loadUser: React.PropTypes.func.required loadUser: React.PropTypes.func.isRequired
}, },
handleSuccess(){ handleSuccess(){