- Added the repeat days selected for the created todos in the edit dialog

This commit is contained in:
Dejan
2024-10-25 12:18:23 +02:00
parent 6bb32f3281
commit 04f9e31ce4
2 changed files with 13 additions and 12 deletions
+3 -2
View File
@@ -123,7 +123,8 @@ const AddChoreDialog = (addChoreDialogProps: IAddChoreDialog) => {
updateToDo({
...todo,
points: points,
assignees: selectedAssignees
assignees: selectedAssignees,
repeatDays: selectedDays,
});
} else {
addToDo({
@@ -213,7 +214,7 @@ const AddChoreDialog = (addChoreDialogProps: IAddChoreDialog) => {
))}
</Picker>
</View>
{todo.repeatType == "Every week" && <RepeatFreq handleRepeatDaysChange={handleRepeatDaysChange}/>}
{todo.repeatType == "Every week" && <RepeatFreq handleRepeatDaysChange={handleRepeatDaysChange} repeatDays={todo.repeatDays ?? []}/>}
</View>
<View style={styles.divider} />