As a user, I should be able to edit a message that I sent previously. I am not able to edit others messages. Once I have edited the message a saved, I should see my updated message print to the page and the new message should be saved to firebase.
Acceptance Criteria
GIVEN a user wants to edit a previous message of theirs
WHEN the user performs a gesture on the edit affordance
THEN the user should be able to change the text of their message
AND have an affordance for saving the edited message
Developer Notes
Create and Axios put request in messagesData.js to edit your messages
update the time stamp as when submitting new message on save button click
only edit messages that are assigned to your uid
show edit button next to user that is logged in to ensure that only the user logged in can edit messages
User Story
As a user, I should be able to edit a message that I sent previously. I am not able to edit others messages. Once I have edited the message a saved, I should see my updated message print to the page and the new message should be saved to firebase.
Acceptance Criteria
GIVEN a user wants to edit a previous message of theirs WHEN the user performs a gesture on the edit affordance THEN the user should be able to change the text of their message AND have an affordance for saving the edited message
Developer Notes