Use the documented syntax for default props in CreateReactClass
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -49,10 +49,10 @@ export default React.createClass({
|
||||
onFinished: PropTypes.func.isRequired,
|
||||
},
|
||||
|
||||
defaultProps: {
|
||||
getDefaultProps: () => ({
|
||||
danger: false,
|
||||
askReason: false,
|
||||
},
|
||||
}),
|
||||
|
||||
componentWillMount: function() {
|
||||
this._reasonField = null;
|
||||
|
||||
Reference in New Issue
Block a user