Merge pull request #1968 from matrix-org/t3chguy/fix_QuestionDialog

QuestionDialog pass hasCancelButton to DialogButtons
This commit is contained in:
David Baker 2018-06-15 10:58:54 +01:00 committed by GitHub
commit 73b49d6d5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,9 +67,10 @@ export default React.createClass({
{ this.props.description }
</div>
<DialogButtons primaryButton={this.props.button || _t('OK')}
cancelButton={this.props.cancelButton}
onPrimaryButtonClick={this.onOk}
primaryButtonClass={primaryButtonClass}
cancelButton={this.props.cancelButton}
hasCancel={this.props.hasCancelButton}
onPrimaryButtonClick={this.onOk}
focus={this.props.focus}
onCancel={this.onCancel}
>