Feat: Ajout quantity sur les ressources +fix page accueil
This commit is contained in:
@@ -83,7 +83,7 @@ export default function BonjourScreen() {
|
|||||||
<ThemedTextInput
|
<ThemedTextInput
|
||||||
lvl={0}
|
lvl={0}
|
||||||
style={styles.input}
|
style={styles.input}
|
||||||
placeholder="Rechercher un groupe..."
|
placeholder="Rechercher un artisant..."
|
||||||
value={search}
|
value={search}
|
||||||
onChangeText={setSearch}
|
onChangeText={setSearch}
|
||||||
/>
|
/>
|
||||||
@@ -95,9 +95,7 @@ export default function BonjourScreen() {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ThemedView style={styles.footer}>
|
|
||||||
<Button title="Retour" onPress={() => router.push("/(tabs)/mapScreen") } />
|
|
||||||
</ThemedView>
|
|
||||||
|
|
||||||
<ThemedView style={{width:"100%", position: 'absolute', backgroundColor:'transparent',}}>
|
<ThemedView style={{width:"100%", position: 'absolute', backgroundColor:'transparent',}}>
|
||||||
<SelectChantier ></SelectChantier>
|
<SelectChantier ></SelectChantier>
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ export default function GestionnaireRessource() {
|
|||||||
<Text>{item.id}</Text>
|
<Text>{item.id}</Text>
|
||||||
<Text>{item.name}</Text>
|
<Text>{item.name}</Text>
|
||||||
<Text>{item.type}</Text>
|
<Text>{item.type}</Text>
|
||||||
|
<Text>{item.quantity}</Text>
|
||||||
|
<Text>{item.available_quantity}</Text>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ export type Ressource = {
|
|||||||
name: string;
|
name: string;
|
||||||
type: string;
|
type: string;
|
||||||
Image: string;
|
Image: string;
|
||||||
|
quantity: number;
|
||||||
|
available_quantity: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function getRessources(): Promise<Ressource[]> {
|
export async function getRessources(): Promise<Ressource[]> {
|
||||||
|
|||||||
Reference in New Issue
Block a user