From 1b69ecb57aaf17a79689d39607e06265856f0c28 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 1 Nov 2024 00:30:42 +0000 Subject: Tweak 2FA enabled state (#6043) * tweak 2fa presentation * tweak dialog text style --- src/screens/Settings/PrivacyAndSecuritySettings.tsx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'src/screens/Settings/PrivacyAndSecuritySettings.tsx') diff --git a/src/screens/Settings/PrivacyAndSecuritySettings.tsx b/src/screens/Settings/PrivacyAndSecuritySettings.tsx index da462c90d..12e28e0d2 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) + )} -- cgit 1.4.1