Fit: ajout des context user et ressources pour l'ajout de chantier
This commit is contained in:
@@ -52,7 +52,7 @@ export default function TabLayout() {
|
||||
component={BonjourScreen}
|
||||
options={{
|
||||
title: 'Bonjour',
|
||||
tabBarIcon: ({ color }) => <IconSymbol size={28} name="house.fill" color={color} />,
|
||||
tabBarIcon: ({ color }) => <IconSymbol size={28} name="person.fill" color={color} />,
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
|
||||
15
app/(tabs)/ajouter_chantier.tsx
Normal file
15
app/(tabs)/ajouter_chantier.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import ChantierSummary from '@/components/chantierSummary';
|
||||
import SelectChantier from '@/components/selectChantier';
|
||||
import SetStatus from '@/components/setStatus';
|
||||
import { ThemedView, } from '@/components/themed-view';
|
||||
import Constants from 'expo-constants'; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import React from 'react';
|
||||
import { StyleSheet, View } from 'react-native';
|
||||
import { useChantier } from '../ContextChantier';
|
||||
import { useRessources } from '../ContextRessource';
|
||||
|
||||
export default function ajouterChantier() {
|
||||
const { chantier, setChantier } = useChantier();
|
||||
const { artisant, setArtisant } = useArtisant();
|
||||
const { ressources, setRessources } = useRessources();
|
||||
}
|
||||
@@ -51,8 +51,6 @@ export default function BonjourScreen() {
|
||||
<ThemedText style={styles.group}>{item.group}</ThemedText>
|
||||
<ThemedText>{item.date}</ThemedText>
|
||||
<ThemedText>{item.location}</ThemedText>
|
||||
<ThemedText>Prix : {item.price} €</ThemedText>
|
||||
<ThemedText>Places restantes : {item.ticketsLeft}</ThemedText>
|
||||
</ThemedView>
|
||||
</ThemedView>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user