Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Simplify task and reminder updates, remove UiEvents
- Replaced `taskModel.sendUiEvent(UiEvents.Update(task.id ))` with `taskModel.sendAction(Action.Insert(task.copy(id = task.id, isDone = it)))` to update task completion status. - Replaced `reminderModel.sendUiEvent(UiEvent.Delete(observeAllReminders[index]))` with `reminderModel .sendAction(Action.DeleteById(observeAllReminders[index].id))` for deleting reminders. - Removed `UiEvent` and `UiEvents` import statements, as they are no longer used in this file. - Removed unused parameters from LinkCard Composable. These changes simplifies the logic and relies on the Action pattern.
- Loading branch information