add anomaly

This commit is contained in:
tuanvu
2025-12-11 20:42:16 +01:00
parent 7c06871e45
commit 72dafa13c9
3 changed files with 66 additions and 4 deletions

View File

@@ -4,8 +4,9 @@ import SetStatus from '@/components/setStatus';
import { ThemedView, } from '@/components/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 } from 'react-native';
import { StyleSheet, View,Text } from 'react-native';
import { useChantier } from '../ContextChantier';
import Anomaly from '@/components/anomaly';
@@ -25,7 +26,7 @@ export default function Home() {
<SelectChantier></SelectChantier>
</View>
<ChantierSummary style={styles.summary} data={{chantier}}/>
<Anomaly style={styles.anomaly} data={{chantier}}/>
</View>
</ThemedView>
)
@@ -47,5 +48,8 @@ const styles = StyleSheet.create({
summary:{
marginTop:60,
padding:10,
},
anomaly:{
padding:10,
}
});

View File

@@ -35,7 +35,7 @@ const LoginScreen: React.FC = () => {
return (
<ThemedView lvl={1} style={styles.container}>
<ThemedText style={styles.title}>Se connecter / S'incrire</ThemedText>
<ThemedText style={styles.title}>Se connecter</ThemedText>
<ThemedTextInput
lvl = {2}
border = {5}
@@ -81,4 +81,4 @@ const styles = StyleSheet.create({
padding: 10,
marginBottom: 10,
},
});
});