Fix navigation: use router.push for Back to Loved Ones

- Changed router.replace to router.push for better navigation
- Both header back button and main button now go to beneficiaries list
- Added console.log for debugging

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sergei 2026-01-09 19:45:26 -08:00
parent c004d3c3a4
commit a830383128

View File

@ -191,7 +191,7 @@ export default function EquipmentStatusScreen() {
<SafeAreaView style={styles.container} edges={['top', 'bottom']}>
{/* Header */}
<View style={styles.header}>
<TouchableOpacity style={styles.backButton} onPress={() => router.replace('/(tabs)')}>
<TouchableOpacity style={styles.backButton} onPress={() => router.push('/(tabs)/beneficiaries')}>
<Ionicons name="arrow-back" size={24} color={AppColors.textPrimary} />
</TouchableOpacity>
<Text style={styles.headerTitle}>{beneficiary.name}</Text>
@ -280,7 +280,10 @@ export default function EquipmentStatusScreen() {
{/* Back to Loved Ones Button - above action button */}
<TouchableOpacity
style={styles.backToLovedOnesButton}
onPress={() => router.replace('/(tabs)/beneficiaries')}
onPress={() => {
console.log('[EquipmentStatus] Back to Loved Ones pressed');
router.push('/(tabs)/beneficiaries');
}}
>
<Ionicons name="people" size={20} color={AppColors.white} />
<Text style={styles.backToLovedOnesText}>Back to My Loved Ones</Text>