Skip to content

Commit 741b01b

Browse files
invalid comments
1 parent bb3725f commit 741b01b

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/frontend/src/pages/GanttPage/GanttChart/GanttChartSection.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ interface GanttChartSectionProps<T> {
2929
highlightSubtaskComparator: HighlightTaskComparator<T>;
3030
}
3131

32-
// Isolated tooltip component — only this re-renders on hover, not the task bars
3332
interface GanttTooltipLayerProps {
3433
updateRef: React.MutableRefObject<(options: OnMouseOverOptions | undefined, y?: number) => void>;
3534
}
@@ -71,7 +70,6 @@ const GanttChartSection = <T,>({
7170
}: GanttChartSectionProps<T>) => {
7271
const days = eachDayOfInterval({ start, end }).filter((day) => isMonday(day));
7372

74-
// Stable ref to tooltip updater — avoids re-rendering task bars on hover
7573
const updateTooltip = useRef<(options: OnMouseOverOptions | undefined, y?: number) => void>(() => {});
7674

7775
const handleOnMouseOver = useCallback(

0 commit comments

Comments
 (0)