correction merge selectChantier

This commit is contained in:
Rochas
2025-12-11 21:56:35 +01:00
parent ef916b2f9b
commit 78152b84ae
4 changed files with 112 additions and 163 deletions

View File

@@ -23,67 +23,61 @@ export default function TabLayout() {
const colorScheme = useColorScheme();
return (
<UserProvider>
<ChantierProvider>
<RessourcesProvider>
<Tabs.Navigator
initialRouteName='explore'
screenOptions={{
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
headerShown: false,
tabBarButton: HapticTab,
}}>
<Tabs.Screen
name="home"
component={Home}
options={{
title: 'Home',
tabBarIcon: ({ color }) => (
<IconSymbol size={28} name="house.fill" color={color} />
),
}}
/>
<Tabs.Screen
name="gestionnaire_ressource"
component={ListMateriel}
options={{
title: 'Ressources',
tabBarIcon: ({ color }) => (
<IconSymbol size={28} name="backpack.fill" color={color} />
),
}}
/>
<Tabs.Screen
name="GestionOuvrier"
component={GestionOuvrier}
options={{
title: 'Bonjour',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="person.fill" color={color} />,
}}
/>
<Tabs.Screen
name="explore"
component={MapScreen}
options={{
title: 'MapScreen',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
}}
>
</Tabs.Screen>
<Tabs.Screen
name="addChantier"
component={AddChantier}
options={{
title: 'Ajouter',
tabBarIcon: ({ color }) => (
<AntDesign name="plus" size={24} color={color} />
),
}}
/>
<Tabs.Navigator
initialRouteName='explore'
screenOptions={{
tabBarActiveTintColor: Colors[colorScheme ?? 'light'].tint,
headerShown: false,
tabBarButton: HapticTab,
}}>
<Tabs.Screen
name="home"
component={Home}
options={{
title: 'Home',
tabBarIcon: ({ color }) => (
<IconSymbol size={28} name="house.fill" color={color} />
),
}}
/>
<Tabs.Screen
name="gestionnaire_ressource"
component={ListMateriel}
options={{
title: 'Ressources',
tabBarIcon: ({ color }) => (
<IconSymbol size={28} name="backpack.fill" color={color} />
),
}}
/>
<Tabs.Screen
name="GestionOuvrier"
component={GestionOuvrier}
options={{
title: 'Bonjour',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="person.fill" color={color} />,
}}
/>
<Tabs.Screen
name="explore"
component={MapScreen}
options={{
title: 'MapScreen',
tabBarIcon: ({ color }) => <IconSymbol size={28} name="paperplane.fill" color={color} />,
}}
>
</Tabs.Screen>
<Tabs.Screen
name="addChantier"
component={AddChantier}
options={{
title: 'Ajouter',
tabBarIcon: ({ color }) => (
<AntDesign name="plus" size={24} color={color} />
),
}}
/>
</Tabs.Navigator>
</RessourcesProvider>
</ChantierProvider>
</UserProvider>
</Tabs.Navigator>
);
}