Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5eb5ea8

Browse files
authored
Remove redundant copy in deactive uia modal (#12668)
* Remove redundant copy in deactive uia modal Signed-off-by: Michael Telatynski <[email protected]> * delint Signed-off-by: Michael Telatynski <[email protected]> --------- Signed-off-by: Michael Telatynski <[email protected]>
1 parent 4a4c172 commit 5eb5ea8

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

src/components/views/dialogs/DeactivateAccountDialog.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { MatrixClient } from "matrix-js-sdk/src/matrix";
2323
import { MatrixClientPeg } from "../../../MatrixClientPeg";
2424
import { _t } from "../../../languageHandler";
2525
import InteractiveAuth, { ERROR_USER_CANCELLED, InteractiveAuthCallback } from "../../structures/InteractiveAuth";
26-
import { ContinueKind, DEFAULT_PHASE, PasswordAuthEntry, SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
26+
import { ContinueKind, SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
2727
import StyledCheckbox from "../elements/StyledCheckbox";
2828
import BaseDialog from "./BaseDialog";
2929
import defaultDispatcher from "../../../dispatcher/dispatcher";
@@ -88,11 +88,6 @@ export default class DeactivateAccountDialog extends React.Component<IProps, ISt
8888
const DEACTIVATE_AESTHETICS: DialogAesthetics = {
8989
[SSOAuthEntry.LOGIN_TYPE]: dialogAesthetics,
9090
[SSOAuthEntry.UNSTABLE_LOGIN_TYPE]: dialogAesthetics,
91-
[PasswordAuthEntry.LOGIN_TYPE]: {
92-
[DEFAULT_PHASE]: {
93-
body: _t("settings|general|deactivate_confirm_body_password"),
94-
},
95-
},
9691
};
9792

9893
const aesthetics = DEACTIVATE_AESTHETICS[stage];

src/i18n/strings/en_EN.json

-1
Original file line numberDiff line numberDiff line change
@@ -2471,7 +2471,6 @@
24712471
"confirm_adding_email_body": "Click the button below to confirm adding this email address.",
24722472
"confirm_adding_email_title": "Confirm adding email",
24732473
"deactivate_confirm_body": "Are you sure you want to deactivate your account? This is irreversible.",
2474-
"deactivate_confirm_body_password": "To continue, please enter your account password:",
24752474
"deactivate_confirm_body_sso": "Confirm your account deactivation by using Single Sign On to prove your identity.",
24762475
"deactivate_confirm_content": "Confirm that you would like to deactivate your account. If you proceed:",
24772476
"deactivate_confirm_content_1": "You will not be able to reactivate your account",

0 commit comments

Comments
 (0)