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 }) => {
- + ) }