Closed patty-rose closed 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
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
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.