Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added onCheckboxPress function #20

Merged
merged 1 commit into from
Mar 16, 2024
Merged

Conversation

ArshiaAdhya
Copy link
Contributor

FIXES #4

Added a function called "onCheckboxPress" and passed it as props to the Todo component to handle the clicking of a checkbox. As soon as the checkbox is clicked, the "onCheckboxPress" function calls the toggleTodo function which automatically handles it and marks the task as complete/incomplete based on it's previous state.

@PavanaSakethaRam
Copy link
Contributor

@ArshiaAdhya Great Work!! Happy Contributing 😄

@PavanaSakethaRam PavanaSakethaRam merged commit 3474a79 into iiitl:main Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add a function to toggle Todo complete on Checkbox click
2 participants