This commit is contained in:
Alexis Leboeuf
2025-12-11 23:42:08 +01:00
2 changed files with 51 additions and 75 deletions

View File

@@ -24,12 +24,13 @@ export default function Home() {
<View style={{width:"100%", position: 'absolute'}}>
<SelectChantier></SelectChantier>
</View>
<View style={{width:"100%", position: 'absolute',marginLeft:"50%"}}>
<SetStatus></SetStatus>
</View>
<ChantierSummary style={styles.summary} data={{ chantier }} />
<Anomaly style={styles.anomaly} data={{chantier}}/>
{role === "chef" && (
<View style={{width:"100%", position: 'absolute',marginLeft:"50%"}}>
<SetStatus></SetStatus>
</View>
)}
{role === "chef"}
</View>
</ThemedView>
)
@@ -43,13 +44,13 @@ const styles = StyleSheet.create({
container: {
flex: 1,
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
paddingTop : 60,
},
header: {
flex: 1,
width:"100%"
},
summary:{
marginTop:60,
padding:10,
},
anomaly:{