mirror of
https://github.com/logos-messaging/OpChan.git
synced 2026-01-04 05:43:10 +00:00
add number of comments in PostList
This commit is contained in:
parent
df2efac6c3
commit
e5db41bfc8
@ -7,6 +7,7 @@ import {
|
|||||||
usePermissions,
|
usePermissions,
|
||||||
useUserVotes,
|
useUserVotes,
|
||||||
useAuth,
|
useAuth,
|
||||||
|
usePostComments,
|
||||||
} from '@/hooks';
|
} from '@/hooks';
|
||||||
import { EVerificationStatus } from '@/types/identity';
|
import { EVerificationStatus } from '@/types/identity';
|
||||||
import { Button } from '@/components/ui/button';
|
import { Button } from '@/components/ui/button';
|
||||||
@ -325,6 +326,11 @@ const PostList = () => {
|
|||||||
className="text-xs"
|
className="text-xs"
|
||||||
showBadge={false}
|
showBadge={false}
|
||||||
/>
|
/>
|
||||||
|
<span>•</span>
|
||||||
|
<span>
|
||||||
|
<MessageSquare className="inline w-3 h-3 mr-1" />
|
||||||
|
{usePostComments(post.id).totalCount} comments
|
||||||
|
</span>
|
||||||
<ShareButton
|
<ShareButton
|
||||||
url={`${window.location.origin}/post/${post.id}`}
|
url={`${window.location.origin}/post/${post.id}`}
|
||||||
title={post.title}
|
title={post.title}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user