diff --git a/components/pages/todos/AddChoreDialog.tsx b/components/pages/todos/AddChoreDialog.tsx index d095dc9..6f2aa32 100644 --- a/components/pages/todos/AddChoreDialog.tsx +++ b/components/pages/todos/AddChoreDialog.tsx @@ -106,6 +106,11 @@ const AddChoreDialog = (addChoreDialogProps: IAddChoreDialog) => { }, 500) }, []); + const repeatPickerRef = useRef(); + const showRepeatPicker = () => { + repeatPickerRef.current?.toggleExpandable(true); + } + return ( { )} - + { if (value) { - if (value.toString() == "None") { - setTodo((oldValue) => ({ - ...oldValue, - date: null, - repeatType: "None", - })); - } else { - setTodo((oldValue) => ({ - ...oldValue, - date: new Date(), - repeatType: value.toString(), - })); - } + setTodo((oldValue) => ({ + ...oldValue, + date: new Date(), + repeatType: value.toString(), + })); } }} topBarProps={{title: "Repeat"}}