mirror of
https://github.com/element-hq/element-web.git
synced 2024-11-30 23:31:28 +03:00
Rebase DeactivateAccountDialog on BaseDialog
This commit is contained in:
parent
c5284eb070
commit
9ebd58852c
1 changed files with 7 additions and 5 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue