Skip to content

Commit

Permalink
Merge pull request #19 from danielweinmann/activityindicatorcolor
Browse files Browse the repository at this point in the history
Adds activityIndicatorColor prop to SubmitWidget
  • Loading branch information
FaridSafi committed Feb 12, 2016
2 parents c748128 + 7762343 commit af62726
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions widgets/SubmitWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ module.exports = React.createClass({
onSubmit: () => {},
preSubmit: () => {},
isDisabled: false,
activityIndicatorColor: 'black',
};
},

propTypes: {
onSubmit: React.PropTypes.func,
preSubmit: React.PropTypes.func,
isDisabled: React.PropTypes.bool,
activityIndicatorColor: React.PropTypes.string,
},

getInitialState() {
Expand Down Expand Up @@ -122,6 +124,7 @@ module.exports = React.createClass({

isLoading={this.state.isLoading}
isDisabled={this.props.isDisabled}
activityIndicatorColor={this.props.activityIndicatorColor}

{...this.props}

Expand Down

0 comments on commit af62726

Please sign in to comment.