diff --git a/app/(tabs)/gestionnaire_ressource.tsx b/app/(tabs)/gestionnaire_ressource.tsx
index d5c5a24..0feb325 100644
--- a/app/(tabs)/gestionnaire_ressource.tsx
+++ b/app/(tabs)/gestionnaire_ressource.tsx
@@ -76,8 +76,8 @@ export default function GestionnaireRessource() {
onPress={async () => {
setFilterType(t);
setShowFilterMenu(false);
- const updatedChantiers = await getRessources();
- setRessources(updatedChantiers)
+ const updateRessource = await getRessources();
+ setRessources(updateRessource)
}}
>
{t}
diff --git a/components/anomaly.tsx b/components/anomaly.tsx
index 7eeee95..e94187e 100644
--- a/components/anomaly.tsx
+++ b/components/anomaly.tsx
@@ -66,7 +66,7 @@ export default function Anomaly({data,style}: Props) {
{data.chantier.anomalies.length > 0 ? (
data.chantier.anomalies.map((anomaly, index) => (
- • {anomaly}
+ • {anomaly}
handleDelete(anomaly)} style={styles.deleteButton}>
✕
@@ -99,7 +99,7 @@ const styles = StyleSheet.create({
anomaliesContainer: {
padding: 5,
borderRadius: 10,
- height: 150,
+ //height: 150,
},
anomaliesTitle: {
fontSize: 16,
@@ -107,10 +107,16 @@ const styles = StyleSheet.create({
marginBottom: 8,
},
anomalyItem: {
+ flexDirection: "row",
+ alignItems: "flex-start",
padding: 8,
marginBottom: 5,
borderRadius: 8,
},
+ anomalyText: {
+ flex: 1,
+ marginLeft: 5,
+ },
noAnomaly: {
fontStyle: "italic",
opacity: 0.7,
@@ -133,6 +139,7 @@ const styles = StyleSheet.create({
//add anomaly styles
addContainer: {
marginTop: 10,
+ marginLeft: 2,
flexDirection: "row",
alignItems: "center"
},
@@ -144,6 +151,7 @@ const styles = StyleSheet.create({
marginRight: 8,
},
addButton: {
+ color: "white",
paddingVertical: 8,
paddingHorizontal: 12,
borderRadius: 8,