hack4impact-calpoly/the-land-conservancy

link edit event page to backend

Closed this issue · 0 comments

Link the edit event page to the PATCH /events route. You will need to do a few things for everything to work together correctly:

  • The edit event component should take an event prop that represents the event being edited.
  • Modify the route in App.tsx to have an :eventId URL parameter. This should be similar to the log hours route.
  • In events.tsx, make an edit button (pencil icon next to the trash icon) on each event that links to the edit page.
  • Use the validation and functions from createEvent.tsx as a reference to connect it to the backend.