Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ui/desktop/src/components/InterruptionHandler.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from 'react';
import { AlertTriangle, StopCircle, PauseCircle, RotateCcw, Zap, AlertCircle } from 'lucide-react';
import { Button } from './ui/button';
import { InterruptionMatch, getInterruptionMessage } from '../utils/interruptionDetector';
import { InterruptionMatch } from '../utils/interruptionDetector';

interface InterruptionHandlerProps {
match: InterruptionMatch | null;
Expand Down
1 change: 1 addition & 0 deletions ui/desktop/src/components/dashboard/DashboardCanvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export function DashboardCanvas({ widgets, onWidgetMove, onWidgetResize }: Dashb
document.removeEventListener('mouseup', handleMouseUp);
};
}
return () => {}; // Return empty cleanup function when no draggedWidget
}, [draggedWidget, handleMouseMove, handleMouseUp]);

// Clean up on unmount
Expand Down
1 change: 1 addition & 0 deletions ui/desktop/src/components/dashboard/DashboardWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export function DashboardWidget({ widget, onMouseDown, isDragging, onReset }: Da
}, 1000);
return () => clearTimeout(timer);
}
return () => {}; // Return empty cleanup function when dragging
}, [widget.position.x, widget.position.y, isDragging]);

const renderWidgetContent = () => {
Expand Down