|
@@ -20,8 +20,8 @@ export const ReviewPanelComment = memo<{
|
|
|
docId: string
|
|
docId: string
|
|
|
top?: number
|
|
top?: number
|
|
|
hoverRanges?: boolean
|
|
hoverRanges?: boolean
|
|
|
- onEnter?: () => void
|
|
|
|
|
- onLeave?: () => void
|
|
|
|
|
|
|
+ onEnter?: (changeId: string) => void
|
|
|
|
|
+ onLeave?: (changeId: string) => void
|
|
|
hovered?: boolean
|
|
hovered?: boolean
|
|
|
}>(({ comment, top, hovered, onEnter, onLeave, docId, hoverRanges }) => {
|
|
}>(({ comment, top, hovered, onEnter, onLeave, docId, hoverRanges }) => {
|
|
|
const threads = useThreadsContext()
|
|
const threads = useThreadsContext()
|
|
@@ -142,8 +142,8 @@ export const ReviewPanelComment = memo<{
|
|
|
position={comment.op.p}
|
|
position={comment.op.p}
|
|
|
hoverRanges={hoverRanges}
|
|
hoverRanges={hoverRanges}
|
|
|
disabled={processing}
|
|
disabled={processing}
|
|
|
- onEnterEntryIndicator={onEnter}
|
|
|
|
|
- onLeaveEntryIndicator={onLeave}
|
|
|
|
|
|
|
+ onEnterEntryIndicator={onEnter && (() => onEnter(comment.id))}
|
|
|
|
|
+ onLeaveEntryIndicator={onLeave && (() => onLeave(comment.id))}
|
|
|
entryIndicator="comment"
|
|
entryIndicator="comment"
|
|
|
>
|
|
>
|
|
|
<ReviewPanelCommentContent
|
|
<ReviewPanelCommentContent
|