feat: Add NFC tag writing functionality to ChoreCard component, Add Email to sign up

This commit is contained in:
Mo Tarbin 2024-07-06 02:33:06 -04:00
parent c34da50c8c
commit 9a07689dfe
6 changed files with 452 additions and 11 deletions

View file

@ -51,6 +51,19 @@ const GetChoreByID = id => {
headers: HEADERS(),
})
}
const GetChoreDetailById = id => {
return Fetch(`${API_URL}/chores/${id}/details`, {
method: 'GET',
headers: HEADERS(),
})
}
const MarkChoreComplete = id => {
return Fetch(`${API_URL}/chores/${id}/do`, {
method: 'POST',
headers: HEADERS(),
})
}
const CreateChore = chore => {
return Fetch(`${API_URL}/chores/`, {
method: 'POST',
@ -238,6 +251,7 @@ export {
GetAllCircleMembers,
GetAllUsers,
GetChoreByID,
GetChoreDetailById,
GetChoreHistory,
GetChores,
GetCircleMemberRequests,
@ -250,6 +264,7 @@ export {
JoinCircle,
LeaveCircle,
login,
MarkChoreComplete,
SaveChore,
SaveThing,
signUp,