mirror of
https://github.com/docmost/docmost.git
synced 2025-11-13 11:52:37 +10:00
refactor layout
* ui polishing * frontend and backend fixes
This commit is contained in:
@ -13,10 +13,11 @@ import { useFocusWithin } from "@mantine/hooks";
|
||||
import { IComment } from "@/features/comment/types/comment.types.ts";
|
||||
import { usePageQuery } from "@/features/page/queries/page-query.ts";
|
||||
import { IPagination } from "@/lib/types.ts";
|
||||
import { extractPageSlugId } from "@/lib";
|
||||
|
||||
function CommentList() {
|
||||
const { slugId } = useParams();
|
||||
const { data: page } = usePageQuery(slugId);
|
||||
const { pageSlug } = useParams();
|
||||
const { data: page } = usePageQuery({ pageId: extractPageSlugId(pageSlug) });
|
||||
const {
|
||||
data: comments,
|
||||
isLoading: isCommentsLoading,
|
||||
|
||||
Reference in New Issue
Block a user