Update Chore view

This commit is contained in:
Mo Tarbin 2024-07-15 21:58:23 -04:00
parent 7a490116b7
commit 93512eb666
3 changed files with 170 additions and 149 deletions

View file

@ -73,6 +73,16 @@ const MarkChoreComplete = (id, note, completedDate) => {
body: JSON.stringify(body),
})
}
const SkipChore = id => {
return Fetch(`${API_URL}/chores/${id}/skip`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({}),
})
}
const CreateChore = chore => {
return Fetch(`${API_URL}/chores/`, {
method: 'POST',
@ -277,6 +287,7 @@ export {
SaveChore,
SaveThing,
signUp,
SkipChore,
UpdateThingState,
UpdateUserDetails,
}