diff --git a/src/components/user/index.tsx b/src/components/user/index.tsx index 8cb2f05..790ef8c 100644 --- a/src/components/user/index.tsx +++ b/src/components/user/index.tsx @@ -1,30 +1,30 @@ "use client"; -import { useEffect, useState } from "react"; -import { useParams } from "next/navigation"; +// import { useEffect, useState } from "react"; +// import { useParams } from "next/navigation"; export default function User() { - const [user, setUser] = useState(); - const { slug } = useParams(); + // const [user, setUser] = useState(); + // const { slug } = useParams(); - useEffect(() => { - const fetchUser = async () => { - const response = await fetch(`http://localhost:3005/api/v1/user?slug=${slug}`) - setUser(await response.json()); - } + // useEffect(() => { + // const fetchUser = async () => { + // const response = await fetch(`http://localhost:3005/api/v1/user?slug=${slug}`) + // setUser(await response.json()); + // } - fetchUser(); - }, []) + // fetchUser(); + // }, []) - return ( - <div> - {user && ( - <div> - <p>{user.name}</p> - <p>{user.bio}</p> - </div> - )} - </div> - ); - } - \ No newline at end of file + // return ( + // <div> + // {user && ( + // <div> + // <p>{user.name}</p> + // <p>{user.bio}</p> + // </div> + // )} + // </div> + // ); + return <div></div>; +}