Open maechen opened 10 months ago
as I user I should be able to delete both trip or individual activity from the trip, acceptance criteria: query for the activities under the trip, delete activities under the trip, query for the username-trip id, delete the trip
As a user, I when I click on the delete button on an activity card in the MyTrips page, I should see the activity removed from the trip. Then I should see a success or error message on the MyTrips page.
Acceptance Criteria: Query for the user id where the username is the username saved in the session. Then query to delete the activity from the activities table where it matches the user id and the activity title. Render the page with the new trips data with action delete and message.