chore(notifications): defer Notifications page references

Commente (sans supprimer) les liens et imports de NotificationsScreen :
- HeaderActionButtons : bouton cloche commenté → seul Settings reste
- RootNavigator : import + Stack.Screen commentés
- linking : deep-link 'notifications' commenté
- types/navigation : route param 'Notifications' commenté

À réactiver via la recherche de \"// TODO: réactiver quand la page Notifications\".

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yanis 2026-05-01 00:02:14 +02:00
parent 036bc83618
commit c2b04757a4
4 changed files with 8 additions and 4 deletions

View file

@ -16,9 +16,12 @@ export function HeaderActionButtons({
showNotifBadge = true,
}: HeaderActionButtonsProps) {
const navigation = useNavigation<Nav>();
// suppress unused warning while the notif button is commented out
void showNotifBadge;
return (
<View style={styles.group}>
{/* TODO: réactiver quand la page Notifications sera de retour
<TouchableOpacity
style={styles.button}
activeOpacity={0.7}
@ -32,6 +35,7 @@ export function HeaderActionButtons({
/>
{showNotifBadge && <View style={styles.badge} />}
</TouchableOpacity>
*/}
<TouchableOpacity
style={styles.button}

View file

@ -3,7 +3,7 @@ import { NavigationContainer } from '@react-navigation/native';
import SplashScreen from '@/screens/SplashScreen';
import ResultScreen from '@/screens/ResultScreen';
import NotificationsScreen from '@/screens/NotificationsScreen';
// import NotificationsScreen from '@/screens/NotificationsScreen'; // TODO: réactiver quand la page Notifications sera de retour
import ProfileScreen from '@/screens/ProfileScreen';
import SettingsScreen from '@/screens/SettingsScreen';
import DiseaseDetailScreen from '@/screens/DiseaseDetailScreen';
@ -35,7 +35,7 @@ export default function RootNavigator() {
component={ResultScreen}
options={{ animation: 'slide_from_bottom', presentation: 'modal' }}
/>
<Stack.Screen name="Notifications" component={NotificationsScreen} />
{/* <Stack.Screen name="Notifications" component={NotificationsScreen} /> */}
<Stack.Screen name="Profile" component={ProfileScreen} />
<Stack.Screen name="Settings" component={SettingsScreen} />
<Stack.Screen name="DiseaseDetail" component={DiseaseDetailScreen} />

View file

@ -16,7 +16,7 @@ const linking: LinkingOptions<RootStackParamList> = {
},
},
Result: 'result',
Notifications: 'notifications',
// Notifications: 'notifications', // TODO: réactiver quand la page Notifications sera de retour
Profile: 'profile',
Settings: 'settings',
DiseaseDetail: 'disease/:diseaseId',

View file

@ -13,7 +13,7 @@ export type RootStackParamList = {
Splash: undefined;
Main: NavigatorScreenParams<BottomTabParamList>;
Result: { detection: Detection };
Notifications: undefined;
// Notifications: undefined; // TODO: réactiver quand la page Notifications sera de retour
Profile: undefined;
Settings: undefined;
DiseaseDetail: { diseaseId: string };