Skip to content

Commit 92a6b8a

Browse files
committed
feat(hooks): show deleted comment label
1 parent eb955f8 commit 92a6b8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/hooks/use-comment-labels.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const useCommentLabels = (comment, editedCommentState) => {
88
if (editedCommentState === 'failed') editLabel = 'failed edit'
99

1010
const commentLabels = []
11+
if (comment?.deleted) commentLabels.push('deleted')
1112
if (comment?.removed) commentLabels.push('removed')
1213
if (comment?.locked) commentLabels.push('locked')
1314
if (comment?.spoiler) commentLabels.push('spoiler')

0 commit comments

Comments
 (0)