bonjour -> ouvriers
This commit is contained in:
@@ -7,11 +7,13 @@ import { HapticTab } from '@/components/haptic-tab';
|
||||
import { IconSymbol } from '@/components/ui/icon-symbol';
|
||||
import { Colors } from '@/constants/theme';
|
||||
import { useColorScheme } from '@/hooks/use-color-scheme';
|
||||
import BonjourScreen from './bonjourFL';
|
||||
import AddChantier from './addChantier';
|
||||
import GestionOuvrier from './gestion_ouvrier';
|
||||
import ListMateriel from './gestionnaire_ressource';
|
||||
import Home from './home';
|
||||
import MapScreen from './mapScreen';
|
||||
|
||||
|
||||
import AntDesign from '@expo/vector-icons/AntDesign';
|
||||
|
||||
const Tabs = createBottomTabNavigator();
|
||||
@@ -48,10 +50,10 @@ export default function TabLayout() {
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
name="bonjourFL"
|
||||
component={BonjourScreen}
|
||||
name="gestionnaire_ouvrier"
|
||||
component={GestionOuvrier}
|
||||
options={{
|
||||
title: 'Bonjour',
|
||||
title: 'Ouvriers',
|
||||
tabBarIcon: ({ color }) => <IconSymbol size={28} name="person.fill" color={color} />,
|
||||
}}
|
||||
/>
|
||||
@@ -65,13 +67,11 @@ export default function TabLayout() {
|
||||
>
|
||||
</Tabs.Screen>
|
||||
<Tabs.Screen
|
||||
name="ajouterChantier"
|
||||
component={ListMateriel}
|
||||
name="addChantier"
|
||||
component={AddChantier}
|
||||
options={{
|
||||
title: 'Ajouter',
|
||||
tabBarIcon: ({ color }) => (
|
||||
<AntDesign name="plus" size={24} color="black" />
|
||||
),
|
||||
tabBarIcon: ({ color }) => (<AntDesign name="plus" size={28} color={color} />),
|
||||
}}
|
||||
/>
|
||||
|
||||
|
||||
27
app/(tabs)/addChantier.tsx
Normal file
27
app/(tabs)/addChantier.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
import { ThemedText } from '@/components/themed-text';
|
||||
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';
|
||||
|
||||
export default function AddChantier() {
|
||||
|
||||
return(
|
||||
<ThemedView lvl={3} style={styles.back}>
|
||||
<View style={styles.container}>
|
||||
<ThemedText>TODO</ThemedText>
|
||||
</View>
|
||||
</ThemedView>
|
||||
)
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
back:{
|
||||
height:"100%",
|
||||
width:"100%",
|
||||
},
|
||||
container: {
|
||||
flex: 1,
|
||||
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
},
|
||||
});
|
||||
@@ -1,15 +0,0 @@
|
||||
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();
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
import SelectChantier from "@/components/selectChantier";
|
||||
import { ThemedText } from "@/components/themed-text";
|
||||
import { ThemedTextInput } from "@/components/themed-textinput";
|
||||
import { ThemedView } from "@/components/themed-view";
|
||||
@@ -21,7 +20,7 @@ type Concert = {
|
||||
favorite: boolean;
|
||||
};
|
||||
|
||||
export default function BonjourScreen() {
|
||||
export default function GestionOuvrier() {
|
||||
const router = useRouter();
|
||||
const { nom, prenom } = useLocalSearchParams(); // Recup data ecran precedent
|
||||
const [search, setSearch] = useState("");
|
||||
@@ -65,9 +64,6 @@ export default function BonjourScreen() {
|
||||
contentContainerStyle={{ paddingBottom: 40 }}
|
||||
ListHeaderComponent={
|
||||
<ThemedView opacity="00" style={styles.header}>
|
||||
<ThemedText style={styles.text}>
|
||||
Bonjour {prenom} {nom} {chantier && chantier.chef.name}
|
||||
</ThemedText>
|
||||
|
||||
<ThemedView style={styles.inputBack} shadow={true}>
|
||||
<ThemedTextInput
|
||||
@@ -85,15 +81,6 @@ export default function BonjourScreen() {
|
||||
}
|
||||
/>
|
||||
|
||||
<ThemedView
|
||||
style={{
|
||||
width: "100%",
|
||||
position: "absolute",
|
||||
backgroundColor: "transparent",
|
||||
}}
|
||||
>
|
||||
<SelectChantier></SelectChantier>
|
||||
</ThemedView>
|
||||
</ThemedView>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user