Skip to content

feat: added onComplete prop to TaskItem component#63

Open
JokkimDoras wants to merge 1 commit into
minimal-ui-kit:mainfrom
JokkimDoras:fix-mark-complete-action
Open

feat: added onComplete prop to TaskItem component#63
JokkimDoras wants to merge 1 commit into
minimal-ui-kit:mainfrom
JokkimDoras:fix-mark-complete-action

Conversation

@JokkimDoras
Copy link
Copy Markdown

Previously, clicking "Mark complete" from the task popover in analytics-tasks.tsx only logged the task id and did not update the state.

This change passes the existing toggle completion handler to the TaskItem component as a prop and triggers it when the user clicks Mark complete allowing the UI to correctly update the completed state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant