You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make an EditEventView component in src/views/EditEventView/index.tsx
It should take an event as a prop
It should contain the EventForm component and a "Submit" button
When the submit button is clicked, it should send a request to the PUT events/[eventId] api endpoint and display a snackbar saying if it was successful or not. If successful, it should navigate to that event page.
Use the EventFormData type to track the state of the EventForm
Description
Add frontend support for editing events
Technical Details
/events/[eventId]/edit/page.tsx
EditEventView
component insrc/views/EditEventView/index.tsx
EventForm
component and a "Submit" buttonPUT events/[eventId]
api endpoint and display a snackbar saying if it was successful or not. If successful, it should navigate to that event page.EventFormData
type to track the state of theEventForm
EditEventView
on the page made aboveEventView
component that is in-line with the Check in button but takes up less space/events/${eventId}/edit
Dependencies
The text was updated successfully, but these errors were encountered: