diff --git a/src/components/common/Comment.tsx b/src/components/common/Comment.tsx index 7cd1f651..90428864 100644 --- a/src/components/common/Comment.tsx +++ b/src/components/common/Comment.tsx @@ -1,6 +1,5 @@ "use client" -import { useState } from "react" // TODO import { Virtuoso } from "react-virtuoso" @@ -30,8 +29,6 @@ const Comment = ({ (page) => (page?.list?.length ?? 0) > 0, ) - const [totalListHeight, setTotalListHeight] = useState(10) - return (
{ - setTotalListHeight(height + 71) - }} data={data} endReached={() => comments.hasNextPage && comments.fetchNextPage()} components={{ diff --git a/src/components/home/PostModal.tsx b/src/components/home/PostModal.tsx index 0bf1a7be..8d1fd8e4 100644 --- a/src/components/home/PostModal.tsx +++ b/src/components/home/PostModal.tsx @@ -15,7 +15,7 @@ export default function SiteModal({ children }: { children: JSX.Element }) { return ( router.back()} >