Skip to content

Commit 4767b32

Browse files
authoredMar 20, 2024
fix(comments): hide resolve action if no handler is provided (#6084)
1 parent 63432da commit 4767b32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎packages/sanity/src/structure/comments/src/components/list/CommentsListItemContextMenu.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function CommentsListItemContextMenu(props: CommentsListItemContextMenuPr
9898
/>
9999
)}
100100

101-
{isParent && (
101+
{isParent && onStatusChange && (
102102
<Button
103103
aria-label={
104104
status === 'open'
@@ -110,7 +110,6 @@ export function CommentsListItemContextMenu(props: CommentsListItemContextMenuPr
110110
icon={status === 'open' ? CheckmarkCircleIcon : UndoIcon}
111111
mode="bleed"
112112
onClick={onStatusChange}
113-
hidden={!onStatusChange}
114113
tooltipProps={{
115114
content:
116115
status === 'open'

0 commit comments

Comments
 (0)
Please sign in to comment.