Refactor chore management components to centralize action handling

- Removed individual chore action handlers from ChoreCard and CompactChoreCard.
- Introduced a unified `onAction` prop to handle various chore actions (approve, reject, complete, start, pause, delete, etc.) in a centralized manner.
- Updated ChoreActionMenu to utilize the new `onAction` prop for performing actions on chores.
- Simplified state management and notification handling for chore updates.
- Cleaned up unused imports and state variables across affected components.
This commit is contained in:
Mo Tarbin
2025-09-28 02:20:18 -04:00
parent bdd73135f0
commit c7c4a011ef
5 changed files with 406 additions and 621 deletions

View File

@@ -460,6 +460,7 @@ const TaskInput = ({ autoFocus, onChoreUpdate, isModalOpen, onClose }) => {
handleCloseModal(true)
}
})
handleCloseModal(false)
}
if (userLabelsLoading || isCircleMembersLoading) {
return <></>