diff --git a/src/screens/Settings/PrivacyAndSecuritySettings.tsx b/src/screens/Settings/PrivacyAndSecuritySettings.tsx index da462c90db..12e28e0d24 100644 --- a/src/screens/Settings/PrivacyAndSecuritySettings.tsx +++ b/src/screens/Settings/PrivacyAndSecuritySettings.tsx @@ -6,8 +6,9 @@ import {NativeStackScreenProps} from '@react-navigation/native-stack' import {CommonNavigatorParams} from '#/lib/routes/types' import {useAppPasswordsQuery} from '#/state/queries/app-passwords' +import {useSession} from '#/state/session' import * as SettingsList from '#/screens/Settings/components/SettingsList' -import {atoms as a} from '#/alf' +import {atoms as a, useTheme} from '#/alf' import * as Admonition from '#/components/Admonition' import {EyeSlash_Stroke2_Corner0_Rounded as EyeSlashIcon} from '#/components/icons/EyeSlash' import {Key_Stroke2_Corner2_Rounded as KeyIcon} from '#/components/icons/Key' @@ -23,16 +24,30 @@ type Props = NativeStackScreenProps< > export function PrivacyAndSecuritySettingsScreen({}: Props) { const {_} = useLingui() + const t = useTheme() const {data: appPasswords} = useAppPasswordsQuery() + const {currentAccount} = useSession() + return ( - + - Two-factor authentication (2FA) + {currentAccount?.emailAuthFactor ? ( + Email 2FA enabled + ) : ( + Two-factor authentication (2FA) + )} diff --git a/src/screens/Settings/components/Email2FAToggle.tsx b/src/screens/Settings/components/Email2FAToggle.tsx index d89e5f18e4..85ae89deaa 100644 --- a/src/screens/Settings/components/Email2FAToggle.tsx +++ b/src/screens/Settings/components/Email2FAToggle.tsx @@ -57,7 +57,7 @@ export function Email2FAToggle() { /> diff --git a/src/view/screens/Settings/DisableEmail2FADialog.tsx b/src/view/screens/Settings/DisableEmail2FADialog.tsx index e3d0885177..1378759b09 100644 --- a/src/view/screens/Settings/DisableEmail2FADialog.tsx +++ b/src/view/screens/Settings/DisableEmail2FADialog.tsx @@ -88,9 +88,7 @@ export function DisableEmail2FADialog({ style={[a.text_2xl, a.font_bold, t.atoms.text]}> Disable Email 2FA -

+

{stage === Stages.ConfirmCode ? ( An email has been sent to{' '}