diff --git a/src/pages/Profile/components/MyProfile/BookmarkSection.tsx b/src/pages/Profile/components/MyProfile/BookmarkSection.tsx index 9875fbc6..f306dda0 100644 --- a/src/pages/Profile/components/MyProfile/BookmarkSection.tsx +++ b/src/pages/Profile/components/MyProfile/BookmarkSection.tsx @@ -5,14 +5,12 @@ import { useNavigate } from 'react-router-dom'; import NewIdeaCard from '../../../components/NewIdeaCard/NewIdeaCard'; import { useFeedInfiniteFetch } from '../../../Feed/hooks/useFeedInfiniteFetch'; -import useNavigatePage from '../../../hooks/useNavigatePage'; import { useBookmarkedIdeasQuery } from '../../hooks/queries/useBookmarkedIdeasQuery'; import EmptyTabContentSection from '../EmptyTabContentSection'; const BookmarkSection = () => { const navigate = useNavigate(); const { bookmarkedIdeas, fetchNextPage } = useBookmarkedIdeasQuery(); - const { goProfilePage } = useNavigatePage(); const intersectionRef = useRef(null); @@ -57,7 +55,6 @@ const BookmarkSection = () => { return ( - goProfilePage(idea.memberResponse.id)} /> diff --git a/src/pages/Profile/components/OtherProfile/IdeaSection.tsx b/src/pages/Profile/components/OtherProfile/IdeaSection.tsx index 755b5d16..52627884 100644 --- a/src/pages/Profile/components/OtherProfile/IdeaSection.tsx +++ b/src/pages/Profile/components/OtherProfile/IdeaSection.tsx @@ -27,6 +27,14 @@ const IdeaSection = ({ userId }: Props) => { {ideas.map((idea) => { const isMine = false; + // TODO: isBookmarked 가져와야함 + const profile = { + profileImageUrl: '', + nickname: '', + mainSkill: '', + isBookmarked: false, + createdAt: 'testTvalue', + }; const content = { canEdit: isMine, branches: idea.branches, @@ -43,7 +51,7 @@ const IdeaSection = ({ userId }: Props) => { return ( - + diff --git a/src/pages/ProfileEdit/ProfileEdit.page.tsx b/src/pages/ProfileEdit/ProfileEdit.page.tsx index 7c096b58..eb661874 100644 --- a/src/pages/ProfileEdit/ProfileEdit.page.tsx +++ b/src/pages/ProfileEdit/ProfileEdit.page.tsx @@ -60,6 +60,7 @@ const ProfileEdit = () => { skillDepthThree: '', region: regions.find((place) => place.id === prevInputtedData?.livingPlaceId)?.name ?? my.livingPlace ?? '', }); + // TODO: initialValue로 skills 세부 스킬 이전값(prevInputtedData)으로 기억해야함 const { skillDepthOneId, selectedSkillDepths, onDeleteSkill } = useSetDetailSkills({ initialValue: my.skills, mainSkills, diff --git a/src/pages/SignUp/SignUp.page.tsx b/src/pages/SignUp/SignUp.page.tsx index 54a5bf28..79795122 100644 --- a/src/pages/SignUp/SignUp.page.tsx +++ b/src/pages/SignUp/SignUp.page.tsx @@ -63,6 +63,7 @@ const SignUpPage = () => { skillDepthThree: '', region: regions.find((place) => place.id === prevInputtedData?.livingPlaceId)?.name ?? '', }); + // TODO: initialValue로 skills 세부 스킬 이전값(prevInputtedData)으로 기억해야함 const { skillDepthOneId, selectedSkillDepths, onDeleteSkill } = useSetDetailSkills({ mainSkills, detailSkills,