Skip to content

Commit

Permalink
feat: 게시글의 주인인 경우, 댓글 삭제가 가능하게 로직 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dydals3440 committed Feb 18, 2024
1 parent 20feda0 commit 5cef78f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/components/comment/signature/commentView/SignatureComment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,20 @@ const SignatureComment = ({ data }) => {
/>
</>
)}
{can_delete && !editMode && (
<>
<S.Icon
src={Trash}
onClick={async () => {
try {
await deleteReComment({ signatureId, commentId: _id });
} catch (e) {
console.error(e);
}
}}
/>
</>
)}
{editMode && (
<>
<S.Button
Expand Down

0 comments on commit 5cef78f

Please sign in to comment.