bonjour -> ouvriers
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { useChantier } from "@/app/ContextChantier";
|
||||
import { Chantier } from "@/class/class";
|
||||
import { getChantiers } from "@/services/ressourcesService";
|
||||
import { useRouter } from "expo-router";
|
||||
import { useEffect, useState } from "react";
|
||||
import {
|
||||
Dimensions,
|
||||
@@ -34,7 +35,8 @@ export default function SelectChantier() {
|
||||
const [search, setSearch] = useState("");
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
const [chantiers, setChantiers] = useState<Chantier[]>([]);
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const AnimatedThemedView = Animated.createAnimatedComponent(ThemedView);
|
||||
const AnimatedThemedText = Animated.createAnimatedComponent(ThemedText);
|
||||
const AnimatedThemedButton = Animated.createAnimatedComponent(ThemedButton);
|
||||
@@ -50,7 +52,8 @@ export default function SelectChantier() {
|
||||
}
|
||||
|
||||
function onPressAddChantier(){
|
||||
|
||||
router.push("/(tabs)/addChantier")
|
||||
setIsOpen(false)
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
@@ -214,5 +217,8 @@ const styles = StyleSheet.create({
|
||||
buttonAdd:{
|
||||
borderRadius: 10,
|
||||
marginBottom: 10,
|
||||
height: 30,
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user