the-collab-lab / tcl-65-smart-shopping-list

1 stars 1 forks source link

add toggle checkbox functionality #37

Closed patty-rose closed 1 year ago

patty-rose commented 1 year ago

Description

This PR adds a toggleCheckbox function to listItem.jsx so that when you uncheck a checkbox it visually becomes unchecked and there is no update to the database. Then when you check it, it visually becomes checked and the database updates as though it was purchased.

Related Issue

closes #26

Acceptance Criteria

Type of Changes

Type
:bug: Bug fix
✓ :sparkles: New feature
:hammer: Refactoring
:100: Add tests
:link: Update dependencies
:scroll: Docs

After

Testing Steps / QA Criteria

Questions:

Currently this remains checked for 24 hours from purchase. Do we want to update the check to remain until the next expected purchase date? This would be easy to implement.

github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit e3fff2d):

https://tcl-65-smart-shopping-list--pr37-po-fix-checkbox-1qmi1qca.web.app

(expires Thu, 05 Oct 2023 23:43:25 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: a91b8fb0f37677e20d8afa3e8ea496251536f9b8