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

Commit

Permalink
Remove redundant copy in deactive uia modal (#12668)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
t3chguy authored Jun 21, 2024
1 parent 4a4c172 commit 5eb5ea8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
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

0 comments on commit 5eb5ea8

Please sign in to comment.