I need to implement edit functionality for the posts. User should be able to edit only its own post.
When user click to the edit button, he/she should be able to view a modal that has pre-filled fields with old data and he/she should be able to change these fields with the ones he/she desire.
If user does not provide image or location these fields will remain same.
After updating the post user should be able to view updated post.
Steps:
1) Create an EditPost Modal which is similar to CreatePost Modal
2) Pre-fill values of EditPost Modal with the values of related post
3) Connect backend endpoint into EditPost Modal
4) Make this functionality available only for post owner
5) Re-render posts after every update
I need to implement edit functionality for the posts. User should be able to edit only its own post.
Steps:
1) Create an EditPost Modal which is similar to CreatePost Modal 2) Pre-fill values of EditPost Modal with the values of related post 3) Connect backend endpoint into EditPost Modal 4) Make this functionality available only for post owner 5) Re-render posts after every update