From 8ad250f22751c9a22f66703e9a0417f75d04c575 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 9 Jul 2025 16:36:11 +0200 Subject: [PATCH] rename(doc-item): post als doc umbenennen --- .../src/sections/document/doc-item.tsx | 22 +++++++++---------- .../document/view/doc-search-view.tsx | 2 +- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/client/dd-hub-react/src/sections/document/doc-item.tsx b/src/client/dd-hub-react/src/sections/document/doc-item.tsx index 51b69a0..2d7d609 100644 --- a/src/client/dd-hub-react/src/sections/document/doc-item.tsx +++ b/src/client/dd-hub-react/src/sections/document/doc-item.tsx @@ -35,19 +35,19 @@ export type IDocItem = { export function DocItem({ sx, - post, + doc, long, large, ...other }: CardProps & { - post: IDocItem; + doc: IDocItem; long: boolean; large: boolean; }) { const renderAvatar = ( - {post.title} + {doc.title} ); @@ -93,9 +93,9 @@ export function DocItem({ }} > {[ - { number: post.totalComments, icon: 'solar:chat-round-dots-bold' }, - { number: post.totalViews, icon: 'solar:eye-bold' }, - { number: post.totalShares, icon: 'solar:share-bold' }, + { number: doc.totalComments, icon: 'solar:chat-round-dots-bold' }, + { number: doc.totalViews, icon: 'solar:eye-bold' }, + { number: doc.totalShares, icon: 'solar:share-bold' }, ].map((info, _index) => ( - {fDate(post.postedAt)} + {fDate(doc.postedAt)} ); diff --git a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx index 038f7f9..4c541a9 100644 --- a/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx +++ b/src/client/dd-hub-react/src/sections/document/view/doc-search-view.tsx @@ -158,7 +158,7 @@ export function DocSearchView({ posts }: Props) { md: large ? 6 : 3, }} > - + ); })}