diff --git a/services/web/frontend/js/features/review-panel-new/components/review-panel-change.tsx b/services/web/frontend/js/features/review-panel-new/components/review-panel-change.tsx index d72f537f2c..c5807dc4c5 100644 --- a/services/web/frontend/js/features/review-panel-new/components/review-panel-change.tsx +++ b/services/web/frontend/js/features/review-panel-new/components/review-panel-change.tsx @@ -92,15 +92,10 @@ export const ReviewPanelChange = memo<{ docId={docId} hoverRanges={hoverRanges} disabled={accepting} + onEnterEntryIndicator={onEnter} + onLeaveEntryIndicator={onLeave} + entryIndicator="edit" > -
- -
-
-
- -
void + onLeaveEntryIndicator?: () => void + entryIndicator?: 'comment' | 'edit' }> = ({ children, position, @@ -34,6 +38,9 @@ export const ReviewPanelEntry: FC<{ docId, hoverRanges = true, disabled, + onEnterEntryIndicator, + onLeaveEntryIndicator, + entryIndicator, }) => { const state = useCodeMirrorStateContext() const view = useCodeMirrorViewContext() @@ -98,7 +105,6 @@ export const ReviewPanelEntry: FC<{ return (
{ setSelected(false) @@ -141,6 +147,21 @@ export const ReviewPanelEntry: FC<{ transition: 'top .3s, left .1s, right .1s', }} > + {entryIndicator && ( +
+ +
+ )} {children}
)