As a user, I should be able to enter in an event that will happen at a future date and see all my events.
Acceptance Criteria
DELETE
GIVEN a user wants to delete an event
WHEN the user clicks a delete affordance
THEN the event is removed from firebase and no longer displays in the event component
DEV NOTES
create a eventsData file containing a promise to getEventsByUid via axios.get the apiKeys
Object.keys(eventsResults).forEach((eventId) => to push the object id results into a eventsarray,
and resolve the array
create a events.js file to eventsBuilder = (uid) => the data from eventData.getEventsByUid
include delete buttons in the eventsBuilder with id="eventId"
add eventListeners to deleteEvent buttons to call `eventsData.deleteEvent
User Story
As a user, I should be able to enter in an event that will happen at a future date and see all my events.
Acceptance Criteria
DELETE
GIVEN a user wants to delete an event WHEN the user clicks a delete affordance THEN the event is removed from firebase and no longer displays in the event component
DEV NOTES
create a
eventsData
file containing a promise togetEventsByUid
viaaxios.get
theapiKeys
Object.keys(eventsResults).forEach((eventId) =>
to push the object id results into aevents
array, and resolve the arraycreate a
events.js
file toeventsBuilder = (uid) =>
the data fromeventData.getEventsByUid
include
delete
buttons in theeventsBuilder
withid="eventId"
add eventListeners to
deleteEvent
buttons to call `eventsData.deleteEvent