This commit is contained in:
tuanvu
2025-12-13 21:03:45 +01:00
parent abdeaa7d45
commit 15d7a517f5

View File

@@ -75,9 +75,11 @@ export default function GestionnaireRessource() {
lvl={1} lvl={1}
shadow={true} shadow={true}
style={{ padding: 10, borderRadius: 8, marginBottom: 10 }} style={{ padding: 10, borderRadius: 8, marginBottom: 10 }}
onPress={() => { onPress={async () => {
setFilterType(t); setFilterType(t);
setShowFilterMenu(false); setShowFilterMenu(false);
const updatedChantiers = await getRessources();
setRessources(updatedChantiers)
}} }}
> >
<ThemedText style={{ textAlign: "center" }}>{t}</ThemedText> <ThemedText style={{ textAlign: "center" }}>{t}</ThemedText>