From 5e5560b558ff818546c94135bebf334be770c920 Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 9 Mar 2024 15:13:45 -0800 Subject: Add carousel --- src/mocks/handlers.ts | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) (limited to 'src/mocks') diff --git a/src/mocks/handlers.ts b/src/mocks/handlers.ts index 6bd17fa..e3569df 100644 --- a/src/mocks/handlers.ts +++ b/src/mocks/handlers.ts @@ -5,32 +5,28 @@ const token = nanoid(); export const handlers = [ http.post('/guest-login', () => { - return HttpResponse.json( - { - guest: { - id: 1, - firstName: 'Michael', - lastName: 'Hunteman', - attendance: 'false', - meal: '', - email: '', - message: '' - }, - token, - } - ) - }), - http.patch('/guests/1', () => { - return HttpResponse.json( - { + return HttpResponse.json({ + guest: { id: 1, firstName: 'Michael', lastName: 'Hunteman', - attendance: 'true', - meal: 'beef', + attendance: 'false', + meal: '', email: '', - message: '' - } - ) - }) + message: '', + }, + token, + }); + }), + http.patch('/guests/1', () => { + return HttpResponse.json({ + id: 1, + firstName: 'Michael', + lastName: 'Hunteman', + attendance: 'true', + meal: 'beef', + email: '', + message: '', + }); + }), ]; -- cgit v1.2.3