Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add frontend support for updating events #252

Closed
zaviermiller opened this issue Apr 8, 2024 · 0 comments · Fixed by #336
Closed

Add frontend support for updating events #252

zaviermiller opened this issue Apr 8, 2024 · 0 comments · Fixed by #336
Assignees
Milestone

Comments

@zaviermiller
Copy link
Contributor

zaviermiller commented Apr 8, 2024

Description

Add frontend support for editing events

Technical Details

  • Make a page at /events/[eventId]/edit/page.tsx
    • It should get the event from the database
  • 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
    • Mirror the EditVolunteerView component
  • Put the EditEventView on the page made above
  • Add an "Edit" button on the EventView component that is in-line with the Check in button but takes up less space
  • When clicked, it should navigate the user to /events/${eventId}/edit

Dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants