diff --git a/src/components/site/PostFooter.tsx b/src/components/site/PostFooter.tsx index 8020bd64..236021b4 100644 --- a/src/components/site/PostFooter.tsx +++ b/src/components/site/PostFooter.tsx @@ -1,7 +1,7 @@ "use client" import { useInViewport } from "ahooks" -import dynamic from "next/dynamic" +// import dynamic from "next/dynamic" import { useEffect, useRef, useState } from "react" import { useQuery, useQueryClient } from "@tanstack/react-query" @@ -12,14 +12,14 @@ import { ExpandedCharacter, ExpandedNote } from "~/lib/types" const key = ["PostFooterInView"] -const DynamicComment = dynamic(() => import("~/components/common/Comment"), { - // TODO Skeleton - loading: () => ( -
-

Loading comments...

-
- ), -}) +// const DynamicComment = dynamic(() => import("~/components/common/Comment"), { +// // TODO Skeleton +// loading: () => ( +//
+//

Loading comments...

+//
+// ), +// }) export const usePostFooterInView = () => { const { data } = useQuery({ @@ -65,13 +65,13 @@ export const PostFooter = ({ page={page} /> - {inited || isInView ? ( + {/* {inited || isInView ? ( ) : (

Loading comments...

- )} + )} */} ) }