Update Chore view
This commit is contained in:
parent
7a490116b7
commit
93512eb666
3 changed files with 170 additions and 149 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue