home en cours

This commit is contained in:
trochas
2025-12-09 16:34:37 +01:00
parent 73e8600db9
commit e0bdcd5150
2 changed files with 8 additions and 26 deletions

View File

@@ -1,14 +1,13 @@
import { useChantier } from '@/app/ContextChantier';
import { useState } from 'react';
import { Dimensions, LayoutAnimation, Modal, Pressable, StyleSheet, View } from 'react-native';
import { Dimensions, LayoutAnimation, Pressable, StyleSheet, View } from 'react-native';
import Animated, { LinearTransition } from 'react-native-reanimated';
import { ThemedButton } from './themed-button';
import { ThemedText } from './themed-text';
import { ThemedTextInput } from './themed-textinput';
import { ThemedView } from "./themed-view";
const screenHeight = Dimensions.get("window").height;
const { width, height } = Dimensions.get("window");
export default function SetStatus() {
@@ -18,9 +17,6 @@ export default function SetStatus() {
const [isOpen,setIsOpen] = useState(false);
const AnimatedThemedView = Animated.createAnimatedComponent(ThemedView);
const AnimatedThemedText = Animated.createAnimatedComponent(ThemedText);
const AnimatedThemedButton = Animated.createAnimatedComponent(ThemedButton);
const AnimatedThemedTextInput = Animated.createAnimatedComponent(ThemedTextInput);
const choices = ["En cours","Interrompu","Terminé","Non réalisé"]
@@ -50,20 +46,7 @@ export default function SetStatus() {
return(
<>
<Modal
visible={isOpen}
transparent
animationType="none"
onRequestClose={() => setIsOpen(false)}
>
{isOpen && (
<Pressable
style={styles.overlay}
onPress={() => setIsOpen(false)}
/>
)}
</Modal>
<Animated.View layout={LinearTransition.duration(200)} style={styles.windowBox}>
<AnimatedThemedView layout={LinearTransition.duration(200)} lvl={2} shadow={true} style={styles.window}>
<ThemedButton style={styles.button} lvl={isOpen ? 1 : 1} onPress={() => onPressOpen()}>
@@ -81,17 +64,14 @@ export default function SetStatus() {
}
</AnimatedThemedView>
</Animated.View>
</>
)
}
const styles = StyleSheet.create({
overlay: {
...StyleSheet.absoluteFillObject,
zIndex: 1,
},
windowBox:{
zIndex: 2,
//backgroundColor: '#00FFFF40',
width:"30%",
padding: 10,