correction addChantier
This commit is contained in:
@@ -4,7 +4,6 @@ import { useState } from "react";
|
||||
import { View,StyleSheet } from "react-native";
|
||||
import AddChantier from "@/components/add/addChantier";
|
||||
import AddRessource from "@/components/add/addRessource";
|
||||
import AddArtisant from "@/components/add/addArtisant";
|
||||
import Constants from 'expo-constants'; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import { ThemedView } from "@/components/theme/themed-view";
|
||||
|
||||
@@ -40,11 +39,13 @@ export default function AddScreen() {
|
||||
</View>
|
||||
):
|
||||
<View>
|
||||
<ThemedButton style={styles.button} onPress={() => setTypeAdd("")}>
|
||||
<ThemedText>
|
||||
Retour
|
||||
</ThemedText>
|
||||
</ThemedButton>
|
||||
<View style={styles.backButton}>
|
||||
<ThemedButton style={styles.button} border={4} onPress={() => setTypeAdd("")}>
|
||||
<ThemedText>
|
||||
Retour
|
||||
</ThemedText>
|
||||
</ThemedButton>
|
||||
</View>
|
||||
|
||||
{typeAdd==="Chantier"? (
|
||||
<AddChantier/>
|
||||
@@ -68,14 +69,22 @@ const styles = StyleSheet.create({
|
||||
},
|
||||
container: {
|
||||
flex: 1,
|
||||
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
//marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
},
|
||||
button:{
|
||||
padding:10,
|
||||
borderRadius:10,
|
||||
},
|
||||
selectTypeAdd:{
|
||||
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
gap:30,
|
||||
padding:20
|
||||
}
|
||||
},
|
||||
backButton:{
|
||||
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
position: 'absolute',
|
||||
padding: 20,
|
||||
zIndex: 100,
|
||||
//backgroundColor:"#FF0000",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user