You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Use DialogButtons in SessionRestoreErrorDialog
Use DialogButtons to eliminate duplicate button code.
This commit is contained in:
@ -40,6 +40,7 @@ export default React.createClass({
|
|||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
|
||||||
|
const DialogButtons = sdk.getComponent('views.elements.DialogButtons');
|
||||||
let bugreport;
|
let bugreport;
|
||||||
|
|
||||||
if (SdkConfig.get().bug_report_endpoint_url) {
|
if (SdkConfig.get().bug_report_endpoint_url) {
|
||||||
@ -68,11 +69,9 @@ export default React.createClass({
|
|||||||
|
|
||||||
{ bugreport }
|
{ bugreport }
|
||||||
</div>
|
</div>
|
||||||
<div className="mx_Dialog_buttons">
|
<DialogButtons primaryButton={_t("Continue anyway")}
|
||||||
<button className="mx_Dialog_primary" onClick={this._continueClicked}>
|
onPrimaryButtonClick={this._continueClicked}
|
||||||
{ _t("Continue anyway") }
|
onCancel={this.props.onFinished} />
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</BaseDialog>
|
</BaseDialog>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user