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

Remove redundant copy in deactive uia modal #12668

Merged
merged 2 commits into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/components/views/dialogs/DeactivateAccountDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import { MatrixClient } from "matrix-js-sdk/src/matrix";
import { MatrixClientPeg } from "../../../MatrixClientPeg";
import { _t } from "../../../languageHandler";
import InteractiveAuth, { ERROR_USER_CANCELLED, InteractiveAuthCallback } from "../../structures/InteractiveAuth";
import { ContinueKind, DEFAULT_PHASE, PasswordAuthEntry, SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
import { ContinueKind, SSOAuthEntry } from "../auth/InteractiveAuthEntryComponents";
import StyledCheckbox from "../elements/StyledCheckbox";
import BaseDialog from "./BaseDialog";
import defaultDispatcher from "../../../dispatcher/dispatcher";
Expand Down Expand Up @@ -88,11 +88,6 @@ export default class DeactivateAccountDialog extends React.Component<IProps, ISt
const DEACTIVATE_AESTHETICS: DialogAesthetics = {
[SSOAuthEntry.LOGIN_TYPE]: dialogAesthetics,
[SSOAuthEntry.UNSTABLE_LOGIN_TYPE]: dialogAesthetics,
[PasswordAuthEntry.LOGIN_TYPE]: {
[DEFAULT_PHASE]: {
body: _t("settings|general|deactivate_confirm_body_password"),
},
},
};

const aesthetics = DEACTIVATE_AESTHETICS[stage];
Expand Down
1 change: 0 additions & 1 deletion src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2471,7 +2471,6 @@
"confirm_adding_email_body": "Click the button below to confirm adding this email address.",
"confirm_adding_email_title": "Confirm adding email",
"deactivate_confirm_body": "Are you sure you want to deactivate your account? This is irreversible.",
"deactivate_confirm_body_password": "To continue, please enter your account password:",
"deactivate_confirm_body_sso": "Confirm your account deactivation by using Single Sign On to prove your identity.",
"deactivate_confirm_content": "Confirm that you would like to deactivate your account. If you proceed:",
"deactivate_confirm_content_1": "You will not be able to reactivate your account",
Expand Down
Loading