mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 11:20:17 -04:00
update api call for creating an event
This commit is contained in:
parent
c0a00945ef
commit
66b5c8aff6
|
@ -106,6 +106,9 @@ export default function EventCreator({ group }: { group: IGroup }) {
|
|||
endTime,
|
||||
groupId: group.id,
|
||||
placeId,
|
||||
recurring,
|
||||
daysOfWeek,
|
||||
endDate,
|
||||
})
|
||||
.then((response) => response.json())
|
||||
.then(({ id }) => {
|
||||
|
@ -113,7 +116,17 @@ export default function EventCreator({ group }: { group: IGroup }) {
|
|||
})
|
||||
.finally(() => setCreating(false));
|
||||
}
|
||||
}, [creating, name, startTime, endTime, group.id, placeId]);
|
||||
}, [
|
||||
creating,
|
||||
name,
|
||||
startTime,
|
||||
endTime,
|
||||
group.id,
|
||||
placeId,
|
||||
recurring,
|
||||
daysOfWeek,
|
||||
endDate,
|
||||
]);
|
||||
|
||||
return (
|
||||
<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>
|
||||
|
|
Loading…
Reference in New Issue
Block a user