diff --git a/weatherfit_refactoring/src/Components/Molecules/CommentModal.tsx b/weatherfit_refactoring/src/Components/Molecules/CommentModal.tsx index 141ed44..901d777 100644 --- a/weatherfit_refactoring/src/Components/Molecules/CommentModal.tsx +++ b/weatherfit_refactoring/src/Components/Molecules/CommentModal.tsx @@ -14,20 +14,21 @@ export default function CommentModal({ onClickFunction }: Props) { const [content, setContent] = useState('') const { accesstoken, setAccessToken } = AuthTokenStore() - useEffect(() => { - setAccessToken() - const commentData = async () => { - try { - const res = await fetch('/dummy_data/comment.json') - const resData = await res.json() - console.log('res: ', resData) - setComments(resData.comments_data) - } catch (err) { - console.log('err:', err) - } - } - commentData() - }, []) + // 댓글 더미 데이터 + // useEffect(() => { + // setAccessToken() + // const commentData = async () => { + // try { + // const res = await fetch('/dummy_data/comment.json') + // const resData = await res.json() + // console.log('res: ', resData) + // setComments(resData.comments_data) + // } catch (err) { + // console.log('err:', err) + // } + // } + // commentData() + // }, []) useEffect(() => { console.log('댓글 목록 업데이트: ', comments) @@ -109,7 +110,7 @@ export default function CommentModal({ onClickFunction }: Props) { style="m-[10px] absolute bottom-[5px]" inputStyle="w-[325px] h-[30px]" btnText="게시" - place="황동준(으)로 작성..." + place="닉네임(으)로 작성..." /> diff --git a/weatherfit_refactoring/src/Components/molecules/ProfileInfo.tsx b/weatherfit_refactoring/src/Components/molecules/ProfileInfo.tsx index 9277641..d893940 100644 --- a/weatherfit_refactoring/src/Components/molecules/ProfileInfo.tsx +++ b/weatherfit_refactoring/src/Components/molecules/ProfileInfo.tsx @@ -40,16 +40,6 @@ export default function ProfileInfo({

{userInfo.nickname}

- {/* -------------------------------지우기 */} - {/*
-

내 게시물

-

{myPost.length}

-
-
-

좋아요 한 게시물

-

{myLikePost.length}

-
*/} - {/* -------------------------------------- */} diff --git a/weatherfit_refactoring/src/app/mypage/page.tsx b/weatherfit_refactoring/src/app/mypage/page.tsx index 1110e97..5a767b7 100644 --- a/weatherfit_refactoring/src/app/mypage/page.tsx +++ b/weatherfit_refactoring/src/app/mypage/page.tsx @@ -72,8 +72,8 @@ export default function Mypage() { // const profileRes = await res.json() - // // setUserProfile(profileRes) - // // setUserImage(profileRes.image) + // setUserInfo(profileRes) + // setProfileImage(profileRes.image) // console.log('회원정보 data: ', profileRes)