Dress up the soft logout page to look like the design
Fixes https://github.com/vector-im/riot-web/issues/10262 Also fixes showing the user ID twice. We might have a User object which helpfully sets the display name to the user ID, so check for that.
This commit is contained in:
parent
ca6563dce4
commit
ae79ce97f3
3 changed files with 33 additions and 24 deletions
|
@ -43,14 +43,15 @@ export default class ConfirmWipeDeviceDialog extends React.Component {
|
|||
<div className='mx_ConfirmWipeDeviceDialog_content'>
|
||||
<p>
|
||||
{_t(
|
||||
"Deleting all data from this device is permanent. Encrypted messages will be lost " +
|
||||
"Clearing all data from this device is permanent. Encrypted messages will be lost " +
|
||||
"unless their keys have been backed up.",
|
||||
)}
|
||||
</p>
|
||||
</div>
|
||||
<DialogButtons
|
||||
primaryButton={_t("Delete everything")}
|
||||
primaryButton={_t("Clear all data")}
|
||||
onPrimaryButtonClick={this._onConfirm}
|
||||
primaryButtonClass="danger"
|
||||
cancelButton={_t("Cancel")}
|
||||
onCancel={this._onDecline}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue