Role management done for Home screen

This commit is contained in:
Alexis Leboeuf
2025-12-11 21:47:35 +01:00
parent e43811d6f8
commit 373bd86df4

View File

@@ -18,12 +18,16 @@ export default function Home() {
return(
<ThemedView lvl={3} style={styles.back}>
<View style={styles.container}>
{role === "chef" && <SetStatus />}
{role === "resp" && <SelectChantier />}
{role === "ouvrier" && (
<ChantierSummary style={styles.summary} data={{ chantier }} />
<View style={{width:"100%", position: 'absolute'}}>
<SelectChantier></SelectChantier>
</View>
{role === "chef" && (
<View style={{width:"100%", position: 'absolute',marginLeft:"50%"}}>
<SetStatus></SetStatus>
</View>
)}
{role === "resp"}
</View>
</ThemedView>