auto-commit for e1996c58-bdfc-41b3-a428-b8aa2116a8ca

This commit is contained in:
emergent-agent-e1
2025-11-09 16:09:31 +00:00
parent 445f7071e3
commit c16bf475d6
+18 -18
View File
@@ -129,32 +129,32 @@ export default function SettingsScreen({ navigation }: any) {
<TouchableOpacity onPress={() => navigation.goBack()} style={styles.backButton}> <TouchableOpacity onPress={() => navigation.goBack()} style={styles.backButton}>
<Ionicons name="arrow-back" size={24} color={colors.text} /> <Ionicons name="arrow-back" size={24} color={colors.text} />
</TouchableOpacity> </TouchableOpacity>
<Text style={[styles.headerTitle, { color: colors.text }]}>{i18n.t('settings')}</Text> <Text style={[styles.headerTitle, { color: colors.text }]}>{t('settings')}</Text>
<View style={{ width: 40 }} /> <View style={{ width: 40 }} />
</View> </View>
<ScrollView contentContainerStyle={styles.scrollContent}> <ScrollView contentContainerStyle={styles.scrollContent}>
{/* Profile Section */} {/* Profile Section */}
<SettingSection title={i18n.t('profile')}> <SettingSection title={t('profile')}>
<SettingItem <SettingItem
icon="person" icon="person"
title={i18n.t('editProfile')} title={t('editProfile')}
subtitle={user?.email || 'Update your information'} subtitle={user?.email || 'Update your information'}
onPress={() => navigation.navigate('EditProfile')} onPress={() => navigation.navigate('EditProfile')}
/> />
<SettingItem <SettingItem
icon="wallet" icon="wallet"
title={i18n.t('walletAddress')} title={t('walletAddress')}
subtitle="5GgTgG9sRm...ioki45" subtitle="5GgTgG9sRm...ioki45"
onPress={() => navigation.navigate('WalletAddress')} onPress={() => navigation.navigate('WalletAddress')}
/> />
</SettingSection> </SettingSection>
{/* Security Section */} {/* Security Section */}
<SettingSection title={i18n.t('security')}> <SettingSection title={t('security')}>
<SettingItem <SettingItem
icon="finger-print" icon="finger-print"
title={i18n.t('biometricAuth')} title={t('biometricAuth')}
subtitle={biometricAvailable ? 'Use fingerprint or Face ID' : 'Not available on this device'} subtitle={biometricAvailable ? 'Use fingerprint or Face ID' : 'Not available on this device'}
rightElement={ rightElement={
biometricAvailable ? ( biometricAvailable ? (
@@ -169,23 +169,23 @@ export default function SettingsScreen({ navigation }: any) {
/> />
<SettingItem <SettingItem
icon="key" icon="key"
title={i18n.t('changePassword')} title={t('changePassword')}
subtitle="Update your password" subtitle="Update your password"
onPress={() => navigation.navigate('ChangePassword')} onPress={() => navigation.navigate('ChangePassword')}
/> />
<SettingItem <SettingItem
icon="shield-checkmark" icon="shield-checkmark"
title={i18n.t('twoFactorAuth')} title={t('twoFactorAuth')}
subtitle="Add extra security" subtitle="Add extra security"
onPress={() => Alert.alert('Coming Soon', '2FA feature will be available in the next update')} onPress={() => Alert.alert('Coming Soon', '2FA feature will be available in the next update')}
/> />
</SettingSection> </SettingSection>
{/* Preferences Section */} {/* Preferences Section */}
<SettingSection title={i18n.t('preferences')}> <SettingSection title={t('preferences')}>
<SettingItem <SettingItem
icon="notifications" icon="notifications"
title={i18n.t('pushNotifications')} title={t('pushNotifications')}
subtitle="Receive alerts and updates" subtitle="Receive alerts and updates"
rightElement={ rightElement={
<Switch <Switch
@@ -198,13 +198,13 @@ export default function SettingsScreen({ navigation }: any) {
/> />
<SettingItem <SettingItem
icon="language" icon="language"
title={i18n.t('language')} title={t('language')}
subtitle={currentLanguage} subtitle={currentLanguage}
onPress={() => navigation.navigate('LanguageSettings')} onPress={() => navigation.navigate('LanguageSettings')}
/> />
<SettingItem <SettingItem
icon="moon" icon="moon"
title={i18n.t('darkMode')} title={t('darkMode')}
subtitle={isDarkMode ? "Dark theme enabled" : "Light theme enabled"} subtitle={isDarkMode ? "Dark theme enabled" : "Light theme enabled"}
rightElement={ rightElement={
<Switch <Switch
@@ -218,11 +218,11 @@ export default function SettingsScreen({ navigation }: any) {
</SettingSection> </SettingSection>
{/* About Section */} {/* About Section */}
<SettingSection title={i18n.t('about')}> <SettingSection title={t('about')}>
<SettingItem icon="information-circle" title={i18n.t('version')} subtitle="1.0.0" /> <SettingItem icon="information-circle" title={t('version')} subtitle="1.0.0" />
<SettingItem icon="document-text" title={i18n.t('terms')} onPress={() => navigation.navigate('Terms')} /> <SettingItem icon="document-text" title={t('terms')} onPress={() => navigation.navigate('Terms')} />
<SettingItem icon="shield" title={i18n.t('privacy')} onPress={() => navigation.navigate('Privacy')} /> <SettingItem icon="shield" title={t('privacy')} onPress={() => navigation.navigate('Privacy')} />
<SettingItem icon="help-circle" title={i18n.t('help')} onPress={() => navigation.navigate('Help')} /> <SettingItem icon="help-circle" title={t('help')} onPress={() => navigation.navigate('Help')} />
</SettingSection> </SettingSection>
{/* Sign Out */} {/* Sign Out */}
@@ -231,7 +231,7 @@ export default function SettingsScreen({ navigation }: any) {
onPress={handleSignOut} onPress={handleSignOut}
> >
<Ionicons name="log-out-outline" size={20} color={colors.error} /> <Ionicons name="log-out-outline" size={20} color={colors.error} />
<Text style={[styles.signOutText, { color: colors.error }]}>{i18n.t('signOut')}</Text> <Text style={[styles.signOutText, { color: colors.error }]}>{t('signOut')}</Text>
</TouchableOpacity> </TouchableOpacity>
</ScrollView> </ScrollView>
</View> </View>