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:
parent
036bc83618
commit
c2b04757a4
|
|
@ -16,9 +16,12 @@ export function HeaderActionButtons({
|
||||||
showNotifBadge = true,
|
showNotifBadge = true,
|
||||||
}: HeaderActionButtonsProps) {
|
}: HeaderActionButtonsProps) {
|
||||||
const navigation = useNavigation<Nav>();
|
const navigation = useNavigation<Nav>();
|
||||||
|
// suppress unused warning while the notif button is commented out
|
||||||
|
void showNotifBadge;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={styles.group}>
|
<View style={styles.group}>
|
||||||
|
{/* TODO: réactiver quand la page Notifications sera de retour
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.button}
|
style={styles.button}
|
||||||
activeOpacity={0.7}
|
activeOpacity={0.7}
|
||||||
|
|
@ -32,6 +35,7 @@ export function HeaderActionButtons({
|
||||||
/>
|
/>
|
||||||
{showNotifBadge && <View style={styles.badge} />}
|
{showNotifBadge && <View style={styles.badge} />}
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
*/}
|
||||||
|
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
style={styles.button}
|
style={styles.button}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import { NavigationContainer } from '@react-navigation/native';
|
||||||
|
|
||||||
import SplashScreen from '@/screens/SplashScreen';
|
import SplashScreen from '@/screens/SplashScreen';
|
||||||
import ResultScreen from '@/screens/ResultScreen';
|
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 ProfileScreen from '@/screens/ProfileScreen';
|
||||||
import SettingsScreen from '@/screens/SettingsScreen';
|
import SettingsScreen from '@/screens/SettingsScreen';
|
||||||
import DiseaseDetailScreen from '@/screens/DiseaseDetailScreen';
|
import DiseaseDetailScreen from '@/screens/DiseaseDetailScreen';
|
||||||
|
|
@ -35,7 +35,7 @@ export default function RootNavigator() {
|
||||||
component={ResultScreen}
|
component={ResultScreen}
|
||||||
options={{ animation: 'slide_from_bottom', presentation: 'modal' }}
|
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="Profile" component={ProfileScreen} />
|
||||||
<Stack.Screen name="Settings" component={SettingsScreen} />
|
<Stack.Screen name="Settings" component={SettingsScreen} />
|
||||||
<Stack.Screen name="DiseaseDetail" component={DiseaseDetailScreen} />
|
<Stack.Screen name="DiseaseDetail" component={DiseaseDetailScreen} />
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const linking: LinkingOptions<RootStackParamList> = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Result: 'result',
|
Result: 'result',
|
||||||
Notifications: 'notifications',
|
// Notifications: 'notifications', // TODO: réactiver quand la page Notifications sera de retour
|
||||||
Profile: 'profile',
|
Profile: 'profile',
|
||||||
Settings: 'settings',
|
Settings: 'settings',
|
||||||
DiseaseDetail: 'disease/:diseaseId',
|
DiseaseDetail: 'disease/:diseaseId',
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export type RootStackParamList = {
|
||||||
Splash: undefined;
|
Splash: undefined;
|
||||||
Main: NavigatorScreenParams<BottomTabParamList>;
|
Main: NavigatorScreenParams<BottomTabParamList>;
|
||||||
Result: { detection: Detection };
|
Result: { detection: Detection };
|
||||||
Notifications: undefined;
|
// Notifications: undefined; // TODO: réactiver quand la page Notifications sera de retour
|
||||||
Profile: undefined;
|
Profile: undefined;
|
||||||
Settings: undefined;
|
Settings: undefined;
|
||||||
DiseaseDetail: { diseaseId: string };
|
DiseaseDetail: { diseaseId: string };
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue