From a8c133bbf9a0393b3341f60db2defbc1da8e90ce Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 9 Dec 2025 00:21:15 +0100 Subject: [PATCH] feat: refactor frontend document tag display by removing `EntryTags`. --- .../components/DocumentsGridCard.tsx | 4 +-- .../documents/components/DocumentsListRow.tsx | 4 +-- .../src/documents/components/EntryTags.tsx | 31 ------------------- 3 files changed, 4 insertions(+), 35 deletions(-) delete mode 100644 frontend/src/documents/components/EntryTags.tsx diff --git a/frontend/src/documents/components/DocumentsGridCard.tsx b/frontend/src/documents/components/DocumentsGridCard.tsx index b9e537b..8167dca 100644 --- a/frontend/src/documents/components/DocumentsGridCard.tsx +++ b/frontend/src/documents/components/DocumentsGridCard.tsx @@ -9,7 +9,7 @@ import { useDocumentsCommandContext } from '../context/DocumentsCommandContext'; import type { DocumentViewLogic } from '../logic/useDocumentViewLogic'; import EditableEntryTitle from './EditableEntryTitle'; import EntryCorrespondents from './EntryCorrespondents'; -import EntryTags from './EntryTags'; +import DocumentTags from './DocumentTags'; import FolderEntry from './FolderEntry'; import DocumentEntry from './DocumentEntry'; import { TagInteractionHandlers } from '../interactions/useTagInteractions'; @@ -122,7 +122,7 @@ const DocumentsGridCard: React.FC = (props) => {
- = (props) => {
- | null; - onTagClick?: (tagId: Identifier) => void; - doc: Document; - tagHandlers?: TagInteractionHandlers; -} - -const EntryTags: React.FC = (props) => { - if (!props.tags || props.tags.length === 0) { - return null; - } - - return ( - - ); -}; - -export default EntryTags;