feat: Refactor tag interaction handling to use unified handlers

This commit is contained in:
2025-12-09 01:00:54 +01:00
parent 4f28230243
commit ebc7ce67a1
7 changed files with 47 additions and 25 deletions
@@ -183,11 +183,6 @@ export const useDocumentsContextValues = (props: DocumentsPanelInnerProps) => {
end: (e: any) => latestHandlersRef.current.handleDocumentDragEndLocal(e),
},
},
tags: {
onAttach: (d: any, t: any) => latestPropsRef.current.onDocumentTagAttach?.(d, t),
onDetach: (d: any, t: any) => latestPropsRef.current.onDocumentTagDetach?.(d, t),
onClick: (t: any) => latestHandlersRef.current.toggleTagFilter(t),
},
correspondents: {
onClick: (c: any) => latestHandlersRef.current.toggleCorrespondentFilter(c),
},