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,
|
endTime,
|
||||||
groupId: group.id,
|
groupId: group.id,
|
||||||
placeId,
|
placeId,
|
||||||
|
recurring,
|
||||||
|
daysOfWeek,
|
||||||
|
endDate,
|
||||||
})
|
})
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then(({ id }) => {
|
.then(({ id }) => {
|
||||||
|
@ -113,7 +116,17 @@ export default function EventCreator({ group }: { group: IGroup }) {
|
||||||
})
|
})
|
||||||
.finally(() => setCreating(false));
|
.finally(() => setCreating(false));
|
||||||
}
|
}
|
||||||
}, [creating, name, startTime, endTime, group.id, placeId]);
|
}, [
|
||||||
|
creating,
|
||||||
|
name,
|
||||||
|
startTime,
|
||||||
|
endTime,
|
||||||
|
group.id,
|
||||||
|
placeId,
|
||||||
|
recurring,
|
||||||
|
daysOfWeek,
|
||||||
|
endDate,
|
||||||
|
]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>
|
<UISecondaryBox style={{ width: '100%', boxSizing: 'border-box' }}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user