Feat: Ajout de la page pour nouveau chantier ( A CORRIGER)

This commit is contained in:
Amaël Kesteman
2025-12-11 21:07:59 +01:00
parent 72dafa13c9
commit 6446c3f975
3 changed files with 263 additions and 80 deletions

View File

@@ -40,11 +40,11 @@ export default function SelectChantier() {
const router = useRouter();
const AnimatedThemedView = Animated.createAnimatedComponent(ThemedView);
const AnimatedThemedText = Animated.createAnimatedComponent(ThemedText);
const AnimatedThemedButton = Animated.createAnimatedComponent(ThemedButton);
const AnimatedThemedTextInput =
Animated.createAnimatedComponent(ThemedTextInput);
// cast to any to avoid strict Animated typing issues for custom props like `lvl`/`border`
const AnimatedThemedView: any = Animated.createAnimatedComponent(ThemedView as any);
const AnimatedThemedText: any = Animated.createAnimatedComponent(ThemedText as any);
const AnimatedThemedButton: any = Animated.createAnimatedComponent(ThemedButton as any);
const AnimatedThemedTextInput: any = Animated.createAnimatedComponent(ThemedTextInput as any);
async function onPressOpen(){
setIsLoaded(false);
@@ -57,7 +57,7 @@ export default function SelectChantier() {
}
function onPressAddChantier(){
router.push("/(tabs)/addChantier")
router.push('/(tabs)/ajoute_chantier')
setIsOpen(false)
}