Skip to content
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
15 changes: 8 additions & 7 deletions app/(tabs)/settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,16 +105,17 @@ export default function SettingsScreen() {
</Text>
</View>
</View>
<Switch
value={isLockEnabled}
onValueChange={handleToggleLock}
trackColor={{ false: colors.border, true: colors.primary }}
/>
</View>
<Switch
value={isLockEnabled}
onValueChange={handleToggleLock}
trackColor={{ false: colors.border, true: colors.primary }}
/>
</View>

<View style={styles.divider} />
<View style={styles.divider} />

<View style={styles.themeRow}>
<View style={styles.themeRow}>
{THEME_OPTIONS.map(({ mode, label, Icon }) => {
const selected = themeMode === mode;
return (
Expand Down
2 changes: 1 addition & 1 deletion app/diagnostics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ const styles = StyleSheet.create({
value: { fontSize: 14, fontWeight: '500', color: '#212529' },
button: { backgroundColor: '#0066cc', paddingVertical: 12, borderRadius: 8, alignItems: 'center', marginBottom: 32 },
buttonText: { color: '#ffffff', fontWeight: '600', fontSize: 16 },
});
});
8 changes: 8 additions & 0 deletions src/components/WalletResetConfirmModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ const DATA_TO_BE_REMOVED = [
{ icon: Clock, label: 'Transaction history', detail: 'Cached payment activity' },
] as const;

/** Items that will be permanently deleted, displayed as a bullet-point list. */
const DATA_TO_BE_REMOVED = [
{ icon: KeyRound, label: 'Wallet secret key', detail: 'Your Stellar secret key stored on this device' },
{ icon: Settings, label: 'App preferences', detail: 'Theme selection and app lock settings' },
{ icon: Users, label: 'Saved contacts', detail: 'Your address book entries' },
{ icon: Clock, label: 'Transaction history', detail: 'Cached payment activity' },
] as const;

export const WalletResetConfirmModal: React.FC<WalletResetConfirmModalProps> = ({
visible,
isLoading = false,
Expand Down