Rebase DeactivateAccountDialog on BaseDialog

This commit is contained in:
Aidan Gauland 2017-12-18 23:08:51 +13:00
parent c5284eb070
commit 9ebd58852c

View file

@ -77,6 +77,7 @@ export default class DeactivateAccountDialog extends React.Component {
} }
render() { render() {
const BaseDialog = sdk.getComponent('views.dialogs.BaseDialog');
const Loader = sdk.getComponent("elements.Spinner"); const Loader = sdk.getComponent("elements.Spinner");
let passwordBoxClass = ''; let passwordBoxClass = '';
@ -99,10 +100,11 @@ export default class DeactivateAccountDialog extends React.Component {
} }
return ( return (
<div className="mx_DeactivateAccountDialog"> <BaseDialog className="mx_DeactivateAccountDialog"
<div className="mx_Dialog_title danger"> onFinished={this.props.onFinished}
{ _t("Deactivate Account") } onEnterPressed={this.onOk}
</div> titleClass="danger"
title={_t("Deactivate Account")}>
<div className="mx_Dialog_content"> <div className="mx_Dialog_content">
<p>{ _t("This will make your account permanently unusable. You will not be able to re-register the same user ID.") }</p> <p>{ _t("This will make your account permanently unusable. You will not be able to re-register the same user ID.") }</p>
@ -130,7 +132,7 @@ export default class DeactivateAccountDialog extends React.Component {
{ cancelButton } { cancelButton }
</div> </div>
</div> </BaseDialog>
); );
} }
} }