From 13fb8023656cc2587eeb098384a01909efd8cf22 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Fri, 10 Nov 2023 01:33:21 +0300 Subject: [PATCH] Fixed comments control in the article footer --- src/components/Article/FullArticle.tsx | 9 ++++++--- src/components/Feed/ArticleCard/ArticleCard.tsx | 13 ++++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/components/Article/FullArticle.tsx b/src/components/Article/FullArticle.tsx index 8eefca00..5ea1a86d 100644 --- a/src/components/Article/FullArticle.tsx +++ b/src/components/Article/FullArticle.tsx @@ -354,9 +354,12 @@ export const FullArticle = (props: Props) => {
- - {props.article.stat?.commented || t('Add' + ' comment')} - + {t('Add comment')}} + > + {props.article.stat?.commented} +
)} diff --git a/src/components/Feed/ArticleCard/ArticleCard.tsx b/src/components/Feed/ArticleCard/ArticleCard.tsx index 8cae936b..e340e895 100644 --- a/src/components/Feed/ArticleCard/ArticleCard.tsx +++ b/src/components/Feed/ArticleCard/ArticleCard.tsx @@ -230,9 +230,16 @@ export const ArticleCard = (props: ArticleCardProps) => { name="comment-hover" class={clsx(styles.icon, styles.iconHover, styles.feedControlIcon)} /> - - {props.article.stat?.commented || t('Add comment')} - + + {t('Add comment')} + + } + > + {props.article.stat?.commented} +