Closed stephencastaneda closed 4 years ago
As a user, when I am on the setSongs page, I should see an add button, I should be able to click on to add a set.
WHEN I am on the setSongs page THEN I click on the add button AND a form opens up AND I should be able to add songs to the set
SetSongs.js
songId
performingChoir
newSetSong
setSongId
setId
setSongsData
postSetSongs
render
this.state
return
https://www.npmjs.com/package/multiselect-react-dropdown
User Story
As a user, when I am on the setSongs page, I should see an add button, I should be able to click on to add a set.
AC
WHEN I am on the setSongs page THEN I click on the add button AND a form opens up AND I should be able to add songs to the set
Dev Notes
SetSongs.js
create state and definesongId
andperformingChoir
as an empty arraynewSetSong
and includesetSongId
songId
setId
andperformingChoir
as the keyssetSongsData
topostSetSongs
and pass itnewSetSong
render
should get thesongId
andperformingChoir
fromthis.state
return
should return a form with inputs forsongId
andperformingChoir