fix: viewing statistics

This commit is contained in:
DIYgod 2023-05-18 12:51:17 +01:00
parent 6347933bc7
commit effa67d8c5
No known key found for this signature in database
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import { CommentItem } from "~/components/common/CommentItem"
import { useTranslation } from "~/lib/i18n/client"
import { ExpandedNote } from "~/lib/types"
import { cn } from "~/lib/utils"
import { useGetComments } from "~/queries/page"
import { useGetComments, useGetPage } from "~/queries/page"
export const Comment: React.FC<{
page?: ExpandedNote
@ -19,6 +19,12 @@ export const Comment: React.FC<{
})
const { t } = useTranslation("common")
// For viewing statistics
useGetPage({
characterId: page?.characterId,
noteId: page?.noteId,
})
return (
<div
className={cn("xlog-comment comment", className)}