Almost finished Roles bugfix
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user