Update button re-enable timeout to 3 seconds, update thing history

This commit is contained in:
Mo Tarbin
2024-07-01 22:12:19 -04:00
parent 6bc28be9e3
commit 5e54da8271
9 changed files with 1004 additions and 92 deletions

View File

@@ -125,7 +125,7 @@ const ChoreCard = ({ chore, performers, onChoreUpdate, onChoreRemove, sx }) => {
}
})
setIsDisabled(true)
setTimeout(() => setIsDisabled(false), 5000) // Re-enable the button after 5 seconds
setTimeout(() => setIsDisabled(false), 3000) // Re-enable the button after 5 seconds
}
const handleChangeDueDate = newDate => {
if (activeUserId === null) {