As a user, I should be able to edit an old post. I am not able to see others users diary posts, nor they mine. Once I have edited the entry, and saved, I should see my updated entry print to the page and the new post should be saved to firebase in place of the old post.
Acceptance Criteria
GIVEN a user wants to edit a previous diary entry of theirs
WHEN the user performs a gesture on the edit affordance
THEN the user should be able to change the copy of their entry (that will appear in a form in a modal)
AND have an affordance for saving the edited post
Developer Notes
Create and Axios put request in DiarysData.js to edit your posts
update the date as when submitting new posts on save button click
show edit button next to user that is logged in
domString for form that prints into id contained in modal (universal modal for all components)
User Story
As a user, I should be able to edit an old post. I am not able to see others users diary posts, nor they mine. Once I have edited the entry, and saved, I should see my updated entry print to the page and the new post should be saved to firebase in place of the old post.
Acceptance Criteria
GIVEN a user wants to edit a previous diary entry of theirs WHEN the user performs a gesture on the edit affordance THEN the user should be able to change the copy of their entry (that will appear in a form in a modal) AND have an affordance for saving the edited post
Developer Notes