Feat: ajout de la page d'ajout d'un nouvel artisant

This commit is contained in:
Amaël Kesteman
2025-12-13 15:30:08 +01:00
parent ff010fec4e
commit 602b571d5c
2 changed files with 260 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ import Home from './home';
import MapScreen from './mapScreen';
import AddChantier from './addChantier';
import AddRessource from './addRessource';
import AddArtisant from './addArtisant';
import AntDesign from '@expo/vector-icons/AntDesign';
import { UserProvider } from '../ContextUser';
import { ChantierProvider } from '../ContextChantier';
@@ -81,7 +82,18 @@ export default function TabLayout() {
name="addRessource"
component={AddRessource}
options={{
title: 'Ajouter',
title: 'Ressources',
tabBarIcon: ({ color }) => (
<AntDesign name="plus" size={24} color={color} />
),
}}
/>
<Tabs.Screen
name="addArtisant"
component={AddArtisant}
options={{
title: 'Artisants',
tabBarIcon: ({ color }) => (
<AntDesign name="plus" size={24} color={color} />
),
@@ -89,7 +101,6 @@ export default function TabLayout() {
/>
</Tabs.Navigator>
);
}