As a user, I should be able to delete a species from the Nautilus.
AC
WHEN the user logs in, they should see a display of all species.
AND when a user clicks on the delete link within the species card the card will then disappear.
DEV Notes
In the speciesCard folder
[ ] Make a function called deleteSpecies
[ ] e.preventdefault()
[ ] Grab the id from firebase
[ ] Create variable called speciesId that will grab the target if which is speciesDelete and use the split method
[ ] In the buildSpecies function create a click event listener that will target the div id which is called speciesDiv and call the deleteSpecies function and have the class for the delete link as .deletespecies
User Story
As a user, I should be able to delete a species from the Nautilus.
AC
WHEN the user logs in, they should see a display of all species. AND when a user clicks on the delete link within the species card the card will then disappear.
DEV Notes
$('#speciesDiv').on('click', '.deletespecies', deleteSpecies);
const deleteSpecies= (boardId) => axios.delete(`${baseUrl}/species/${boardId}.json`);