Closed stephencastaneda closed 4 years ago
As a user, when I click on the delete button on a song list, the song list should be deleted.
WHEN I click on the delete button THEN I click on the delete button on the set list card AND the song list should be deleted
SetCards.js
onClick
removeSetSong
Set.js
deleteSetSong
setSongData.js
.then
getSetSongs
.catch
User Story
As a user, when I click on the delete button on a song list, the song list should be deleted.
AC
WHEN I click on the delete button THEN I click on the delete button on the set list card AND the song list should be deleted
Dev Notes
SetCards.js
componentonClick
the delete button shouldremoveSetSong
and pass in (set.id)Set.js
create aremoveSetSong
function that takes in a (setId)deleteSetSong
setSongData.js
.then
should callgetSetSongs
.catch
should console error cold not delete set song