bounswe / bounswe2022group4

6 stars 3 forks source link

Frontend: Delete Comment Backend Connection #400

Closed umutdenizsenerr closed 1 year ago

umutdenizsenerr commented 1 year ago

I have created Comment structure before with delete button. Now i need to connect it to backend, in order to make delete button functional. Also, user can only delete its own posts.

Steps:

1) Add backend end point for delete comment in frontend structure as a async function. 2) Use authentication token for the delete comment request 3) Use useEffect hook in order to re-render page in order to view updated Comment structure

Reviewer: @BeratDamar Deadline: 04.12.2022 23.59

umutdenizsenerr commented 1 year ago

Since PR is merged, i am closing the issue.