diff --git a/components/pages/todos/AddChore.tsx b/components/pages/todos/AddChore.tsx index d0e321e..b3b931e 100644 --- a/components/pages/todos/AddChore.tsx +++ b/components/pages/todos/AddChore.tsx @@ -9,18 +9,28 @@ import { TextField, Dialog, Slider, + NumberInput, + NumberInputData, + DateTimePicker, } from "react-native-ui-lib"; -import { AntDesign } from "@expo/vector-icons"; +import { AntDesign, Feather, Ionicons } from "@expo/vector-icons"; import LinearGradient from "react-native-linear-gradient"; import { PanningDirectionsEnum } from "react-native-ui-lib/src/components/panningViews/panningProvider"; const AddChore = () => { const [isVisible, setIsVisible] = useState(false); const [points, setPoints] = useState(10); + const [choreDate, setChoreDate] = useState(new Date()); - useEffect(() => { - console.log(points); - }, [points]); + const handleChange = (text: string) => { + const numericValue = parseInt(text, 10); + + if (!isNaN(numericValue) && numericValue >= 0 && numericValue <= 100) { + setPoints(numericValue); + } else if (text === "") { + setPoints(0); + } + }; return ( { panDirection={PanningDirectionsEnum.DOWN} onDismiss={() => setIsVisible(false)} containerStyle={{ + borderRadius: 10, backgroundColor: "white", width: "100%", alignSelf: "stretch", @@ -60,20 +71,104 @@ const AddChore = () => { placeholderTextColor="#2d2d30" text60R marginT-15 + marginL-30 /> - - setPoints(value)} - minimumValue={0} - step={10} - maximumValue={100} + + + + { + setChoreDate(date); + }} + /> + + + + + + + + + + + Assignees + +