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:
parent
c004d3c3a4
commit
a830383128
@ -191,7 +191,7 @@ export default function EquipmentStatusScreen() {
|
|||||||
<SafeAreaView style={styles.container} edges={['top', 'bottom']}>
|
<SafeAreaView style={styles.container} edges={['top', 'bottom']}>
|
||||||
{/* Header */}
|
{/* Header */}
|
||||||
<View style={styles.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} />
|
<Ionicons name="arrow-back" size={24} color={AppColors.textPrimary} />
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
<Text style={styles.headerTitle}>{beneficiary.name}</Text>
|
<Text style={styles.headerTitle}>{beneficiary.name}</Text>
|
||||||
@ -280,7 +280,10 @@ export default function EquipmentStatusScreen() {
|
|||||||
{/* Back to Loved Ones Button - above action button */}
|
{/* Back to Loved Ones Button - above action button */}
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.backToLovedOnesButton}
|
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} />
|
<Ionicons name="people" size={20} color={AppColors.white} />
|
||||||
<Text style={styles.backToLovedOnesText}>Back to My Loved Ones</Text>
|
<Text style={styles.backToLovedOnesText}>Back to My Loved Ones</Text>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user