nss-evening-cohort-10 / nutshell-renaissance-fair

0 stars 0 forks source link

Update-Shows #18

Closed ygitore closed 4 years ago

ygitore commented 5 years ago

User Story

As a user, when i should be able to update souvenirs i want and when hover over each accordion items I should see update button.

AC

When update button is clicked, Then bootstrap modal popup with corresponding data from firebase database populate in the fields( Id, Name, date, ticketPrice, location, ImageUrl, description) and save changes button And when save changes button is clicked, update should be made both in firebase database and dom

Dev Notes

ivannio commented 5 years ago

shows-page

Shows page mockup

zoeames commented 5 years ago

Axios url isn’t quite right. Also looks like you should change the name of that. Maybe to something like this: const updatedShows= (showsId, updatedShowsId) => axios.put(`${baseUrl}/shows/${showsId}.json`, updatedShowsId);