From 050dfcce758c47ba123fc082eaef56823e8a9219 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Sat, 11 Nov 2023 10:51:43 +0100 Subject: [PATCH] feat(use-pending-replycount): implement useAccountComments with filter to get total reply count including pending replies --- src/components/post/post-tools/post-tools.tsx | 4 ++-- src/components/post/post.tsx | 6 +++++- src/components/reply/reply.tsx | 2 +- src/hooks/use-pending-replycount.ts | 14 ++++++++++++++ src/views/post/post.tsx | 1 + 5 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 src/hooks/use-pending-replycount.ts diff --git a/src/components/post/post-tools/post-tools.tsx b/src/components/post/post-tools/post-tools.tsx index bba285a8..62c21d68 100644 --- a/src/components/post/post-tools/post-tools.tsx +++ b/src/components/post/post-tools/post-tools.tsx @@ -47,7 +47,7 @@ const PostTools = ({ cid, isReply, replyCount, spoiler, subplebbitAddress }: Pos const replyLabels = ( <> -
  • +
  • {t('reply_permalink')}
  • @@ -63,7 +63,7 @@ const PostTools = ({ cid, isReply, replyCount, spoiler, subplebbitAddress }: Pos {t('reply_reply')}
  • - ) + ); return (