diff --git a/src/renderer/src/features/notes/StickyNoteCard.tsx b/src/renderer/src/features/notes/StickyNoteCard.tsx index e0422ea..746624e 100644 --- a/src/renderer/src/features/notes/StickyNoteCard.tsx +++ b/src/renderer/src/features/notes/StickyNoteCard.tsx @@ -19,6 +19,7 @@ interface StickyNoteCardProps { snapTargets: readonly SessionBounds[]; onBoundsChange(id: string, bounds: SessionBounds): void; onTextChange(id: string, text: string): void; + onClose(id: string): void; } interface DragState { @@ -43,7 +44,8 @@ export function StickyNoteCard({ snapEnabled, snapTargets, onBoundsChange, - onTextChange + onTextChange, + onClose }: StickyNoteCardProps): React.JSX.Element { const editor = useRef(null); const dragState = useRef(null); @@ -216,6 +218,18 @@ export function StickyNoteCard({ onPointerCancel={endDrag} > {t(locale, "stickyNote")} +