As a user, I should be able to update messages I've entered in the past.
Acceptance Criteria
GIVEN a user wants to edit a previous message of theirs
WHEN the user clicks the edit button
THEN the user should be able to change the text of their message
AND have a button for saving the edited message
AND have a button to cancel if they decide to not make changes
Development
Add event listener to the 'edit' button that appears when the user hovers over one of their messages
When the 'edit' button is clicked, the text of the selected message appears in a text input field, the 'edit' button is replaced with a 'save' button, and the 'delete' button is replaced with a 'cancel' button
When the 'save' button is clicked, the updated text of the message is saved to firebase and the message is update on the message board
When the 'cancel' button is clicked, the text should revert to the text of the original message and no longer be displayed in an input field. The changes are not saved to firebase.
User Story
As a user, I should be able to update messages I've entered in the past.
Acceptance Criteria
GIVEN a user wants to edit a previous message of theirs WHEN the user clicks the edit button THEN the user should be able to change the text of their message AND have a button for saving the edited message AND have a button to cancel if they decide to not make changes
Development