From e5db41bfc8c9cf040a1283ca4ff759d916688635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Pavl=C3=ADn?= Date: Wed, 10 Sep 2025 13:31:26 +0200 Subject: [PATCH] add number of comments in PostList --- src/components/PostList.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/PostList.tsx b/src/components/PostList.tsx index 4f23932..e0aa4e2 100644 --- a/src/components/PostList.tsx +++ b/src/components/PostList.tsx @@ -7,6 +7,7 @@ import { usePermissions, useUserVotes, useAuth, + usePostComments, } from '@/hooks'; import { EVerificationStatus } from '@/types/identity'; import { Button } from '@/components/ui/button'; @@ -325,6 +326,11 @@ const PostList = () => { className="text-xs" showBadge={false} /> + + + + {usePostComments(post.id).totalCount} comments +