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
@@ -29,7 +29,6 @@ const DocumentsListRow: React.FC<DocumentsListRowProps> = (props) => {
const { scrollRef, activeCorrespondentIdSet, tagLookupById } = useDocumentsViewStateContext();
const {
correspondents: { onClick: onCorrespondentClick },
tags: { onClick: onTagClick }
} = useDocumentsCommandContext();
if (entry.type === 'folder') {
@@ -140,7 +139,6 @@ const DocumentsListRow: React.FC<DocumentsListRowProps> = (props) => {
<DocumentTags
tags={doc.tags || []}
tagLookupById={tagLookupById}
onTagClick={onTagClick}
doc={doc}
tagHandlers={logic.handlers.tagHandlers}
/>