Almost finished Roles bugfix

This commit is contained in:
Alexis Leboeuf
2025-12-11 23:41:23 +01:00
parent b874fdfabf
commit ee3f5012f7
2 changed files with 25 additions and 24 deletions

View File

@@ -16,6 +16,7 @@ export default function Home() {
const { chantier, setChantier } = useChantier();
const { role } = useUser();
console.log("ROLE USER", role)
return(
<ThemedView lvl={3} style={styles.back}>
@@ -24,11 +25,11 @@ export default function Home() {
<SelectChantier></SelectChantier>
</View>
<Anomaly style={styles.anomaly} data={{chantier}}/>
<View style={{width:"100%", position: 'absolute',marginLeft:"50%"}}>
<SetStatus></SetStatus>
</View>
{role === "chef"}
{role === "chef" && (
<View style={{width:"100%", position: 'absolute',marginLeft:"50%"}}>
<SetStatus></SetStatus>
</View>
)}
</View>
</ThemedView>
)