This commit is contained in:
Alexis Leboeuf
2025-12-11 22:07:29 +01:00
5 changed files with 107 additions and 162 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>
);
}

View File

@@ -103,8 +103,9 @@ export default function AddChantier() {
<ThemedTextInput lvl = {1} style = {styles.input} placeholder='Adresse du chantier' value = {adresse} onChangeText={setAdresse} />
<ThemedTextInput lvl = {1} style = {styles.input} placeholder='durée estimée (en jours)' value = {duree} onChangeText={setDuree} />
<ThemedTextInput lvl = {1} style = {styles.input} placeholder='chef de chantier' value= {chefChantier} onChangeText={setChefChantier}/>
<ThemedText style={{ fontWeight: "bold", marginTop: 15 }}>Équipe</ThemedText>
<Text style={{ fontWeight: "bold", marginTop: 15 }}>Ressources</Text>
<ThemedText style = {styles.text}>Ajouter un équipier</ThemedText>
<ThemedText style = {styles.text}>Ajouter une ressources</ThemedText>
<ThemedButton
lvl={1}
shadow={true}

View File

@@ -20,7 +20,6 @@ export default function Home() {
return(
<ThemedView lvl={3} style={styles.back}>
<View style={styles.container}>
<ChantierSummary style={styles.summary} data={{ chantier }} />
<View style={{width:"100%", position: 'absolute'}}>
<SelectChantier></SelectChantier>
</View>