clean des composants, dossiers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import ChantierSummary from '@/components/chantierSummary';
|
||||
import SelectChantier from '@/components/selectChantier';
|
||||
import SetStatus from '@/components/setStatus';
|
||||
import { ThemedView } from '@/components/themed-view';
|
||||
import { ThemedView } from '@/components/theme/themed-view';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
import { StyleSheet, ScrollView, Button, TextInput, Text } from 'react-native';
|
||||
import { useChantier } from '../ContextChantier';
|
||||
@@ -9,9 +9,9 @@ import { useRessources } from '../ContextRessource';
|
||||
import { useUser } from '../ContextUser';
|
||||
import { getRessources, getUsers, addChantier } from '@/services/ressourcesService';
|
||||
import { Chantier, Ressources } from '@/class/class';
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
import { ThemedButton } from '@/components/themed-button';
|
||||
import { ThemedTextInput } from '@/components/themed-textinput';
|
||||
import { ThemedText } from '@/components/theme/themed-text';
|
||||
import { ThemedButton } from '@/components/theme/themed-button';
|
||||
import { ThemedTextInput } from '@/components/theme/themed-textinput';
|
||||
|
||||
export default function AddChantier() {
|
||||
const { chantier, setChantier } = useChantier();
|
||||
@@ -96,19 +96,11 @@ export default function AddChantier() {
|
||||
<ThemedTextInput lvl = {0} style = {styles.input} placeholder='chef de chantier' value= {chefChantier} onChangeText={setChefChantier}/>
|
||||
<ThemedText style={{ fontWeight: "bold", marginTop: 15 }}>Équipe</ThemedText>
|
||||
<SelectChantier
|
||||
data={user}
|
||||
multiple
|
||||
selected={userSelect}
|
||||
onChange={setUserSelect}
|
||||
placeholder="Sélectionner l'équipe"
|
||||
|
||||
/>
|
||||
<Text style={{ fontWeight: "bold", marginTop: 15 }}>Ressources</Text>
|
||||
<SelectChantier
|
||||
data={ressources}
|
||||
multiple
|
||||
selected={ressourcesSelect}
|
||||
onChange={setRessourcesSelect}
|
||||
placeholder="Sélectionner les ressources"
|
||||
|
||||
/>
|
||||
<ThemedButton
|
||||
lvl={1}
|
||||
|
||||
Reference in New Issue
Block a user