correction anomalies
This commit is contained in:
@@ -4,7 +4,7 @@ import SetStatus from '@/components/setStatus';
|
||||
import { ThemedView, } from '@/components/theme/themed-view';
|
||||
import Constants from 'expo-constants'; //pour connaître la taille de la barre menu de l'OS en haut
|
||||
import React from 'react';
|
||||
import { StyleSheet, View,Text } from 'react-native';
|
||||
import { StyleSheet, View,Text, ScrollView } from 'react-native';
|
||||
import { useChantier } from '../ContextChantier';
|
||||
import Anomaly from '@/components/anomaly';
|
||||
|
||||
@@ -26,9 +26,13 @@ export default function Home() {
|
||||
<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"}
|
||||
<ScrollView>
|
||||
<View style={{paddingTop:60}}>
|
||||
<ChantierSummary style={styles.summary} data={{ chantier }} />
|
||||
<Anomaly style={styles.anomaly} data={{chantier}}/>
|
||||
{role === "chef"}
|
||||
</View>
|
||||
</ScrollView>
|
||||
|
||||
</View>
|
||||
</ThemedView>
|
||||
@@ -43,7 +47,6 @@ const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
marginTop: Constants.statusBarHeight, //pour la barre menu du haut
|
||||
paddingTop : 60,
|
||||
},
|
||||
header: {
|
||||
flex: 1,
|
||||
|
||||
Reference in New Issue
Block a user