From 0262309c5868b1d90958be964bdc77a761a6e78a Mon Sep 17 00:00:00 2001 From: jiohjung98 Date: Tue, 15 Oct 2024 15:54:18 +0900 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=EA=B2=80=EC=83=89=EA=B2=B0=EA=B3=BC?= =?UTF-8?q?=201=EC=9C=84=20ml-0.12rem=EA=B0=92=20=EC=B6=94=EA=B0=80=20?= =?UTF-8?q?=EB=B0=8F=20=ED=85=8D=EC=8A=A4=ED=8A=B8=20=ED=81=B4=EB=A6=AD=20?= =?UTF-8?q?=EC=8B=9C,=20=EA=B2=80=EC=83=89=20=EA=B2=B0=EA=B3=BC=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/search/SearchRank.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/search/SearchRank.tsx b/src/components/search/SearchRank.tsx index 933a0db..e3bf5fd 100644 --- a/src/components/search/SearchRank.tsx +++ b/src/components/search/SearchRank.tsx @@ -26,10 +26,11 @@ const SearchRank = ({ setKeyWord }: SearchRankType) => { {data?.map((item: RealtimeRankType, i: number) => (
  • + className={`${i < 3 ? 'text-normal text-body6 ' : 'text-gray400 text-body6'}`} + style={{ marginLeft: item.rank === 1 ? '0.12rem' : '0' }}> {item.rank}위
    -
    {item.keyword}
    +
    handleClick(item.keyword)}>{item.keyword}
    {/* todo : 돋보기 누르면 그대로 검색 쿼리에 keyword가 들어가게하기 */}
    Date: Tue, 15 Oct 2024 20:12:02 +0900 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=EB=B9=84=EB=B0=80=EB=B2=88=ED=98=B8?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/mypage/page.tsx | 15 +++++++++++++-- src/components/find/FindPassword.tsx | 23 ++++++++++++----------- src/components/home/RealtimeRank.tsx | 5 ++++- src/components/mypage/MypageHeader.tsx | 21 +++++++-------------- src/components/search/SearchIndex.tsx | 4 ++-- src/components/search/SearchRank.tsx | 2 +- 6 files changed, 39 insertions(+), 31 deletions(-) diff --git a/src/app/mypage/page.tsx b/src/app/mypage/page.tsx index 0444854..f4302fa 100644 --- a/src/app/mypage/page.tsx +++ b/src/app/mypage/page.tsx @@ -7,12 +7,23 @@ import MypageMenu from '@/components/mypage/MypageMenu'; import { logout } from '@/service/auth'; import { useAuthStore } from '@/store/userAuth.store'; import { getCookie, removeCookie } from '@/utils/cookie'; +import { axiosInstance } from '@/service/axiosInstance'; +import { useQuery } from '@tanstack/react-query'; const Mypage = () => { const router = useRouter(); const { isLoggedIn, setIsLoggedIn } = useAuthStore(); const [loading, setLoading] = useState(true); + const fetchBookmarks = async () => { + const { data } = await axiosInstance.get('https://api.moaguide.com/user/bookmark'); + return data; + }; + + const { + data: bookmarks, + } = useQuery({ queryKey: ['bookmarks'], queryFn: fetchBookmarks }); + useEffect(() => { if (!isLoggedIn) { router.push('/'); @@ -46,7 +57,7 @@ const Mypage = () => { return (
    - +