diff --git a/apps/desktop/src/components/ImageAnnotator.tsx b/apps/desktop/src/components/ImageAnnotator.tsx index c8c505a..a42abfc 100644 --- a/apps/desktop/src/components/ImageAnnotator.tsx +++ b/apps/desktop/src/components/ImageAnnotator.tsx @@ -34,15 +34,13 @@ export function ImageAnnotator({ file, onCancel, onSave }: Props) { // tool/color/width are read by Task 2 (drawing engine) and Task 3 (toolbar). // Defaults shown here are intentional so T2's pointer handlers work // immediately with sensible behavior before T3's UI is wired. - const [tool, _setTool] = useState('pen'); - const [color, _setColor] = useState('#ef4444'); - const [width, _setWidth] = useState(4); + const [tool, setTool] = useState('pen'); + const [color, setColor] = useState('#ef4444'); + const [width, setWidth] = useState(4); const draftRef = useRef(null); const [draftTick, setDraftTick] = useState(0); - void _setTool; void _setColor; void _setWidth; void redoStack; - useEffect(() => { const url = URL.createObjectURL(file); const img = new Image(); @@ -236,13 +234,113 @@ export function ImageAnnotator({ file, onCancel, onSave }: Props) { )} -