From 01e0385b51881e179c03dc46d6a497e604788f4c Mon Sep 17 00:00:00 2001 From: nc Date: Fri, 17 Feb 2023 14:39:48 +0700 Subject: [PATCH] fix isso script --- src/pages/Layout/index.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/pages/Layout/index.tsx b/src/pages/Layout/index.tsx index 3dacf47..4318fb7 100644 --- a/src/pages/Layout/index.tsx +++ b/src/pages/Layout/index.tsx @@ -22,13 +22,6 @@ const Comment = ({post_id}) => { } const Layout = ({ data, children }) => { - const [loadComment, setLoadComment] = useState(false); - - const post = data.mdx.frontmatter; - - useEffect(() => { - setLoadComment(true) - }, []) return (
@@ -49,7 +42,7 @@ const Layout = ({ data, children }) => {
- + ) }