From eb413c4c06634d2457b3dc2ef30bd6d90680dc09 Mon Sep 17 00:00:00 2001 From: jiohjung98 Date: Thu, 24 Oct 2024 14:42:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A9=94=EC=9D=B8=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=B6=81=EB=A7=88=ED=81=AC=20=EC=95=8C=EB=9E=84?= =?UTF-8?q?=ED=8A=B8=20=EC=83=81=EC=84=B8=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=EB=9E=91=20=EB=8F=99=EC=9D=BC=ED=95=98=EA=B2=8C=20=EB=A7=9E?= =?UTF-8?q?=EC=B6=94=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/home/MainListItem.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/home/MainListItem.tsx b/src/components/home/MainListItem.tsx index bcf3d5a7..2bb57177 100644 --- a/src/components/home/MainListItem.tsx +++ b/src/components/home/MainListItem.tsx @@ -41,6 +41,7 @@ const MainListItem = ({ onSuccess: () => { handleBookmarkInvalidate(); queryClient.invalidateQueries({ queryKey: ['bookmarks'] }); + alert('북마크 삭제가 완료되었습니다'); if (currentTab === 'all') { queryClient.invalidateQueries({ queryKey: ['MainProductLogin', category] }); @@ -57,6 +58,7 @@ const MainListItem = ({ onSuccess: () => { handleBookmarkInvalidate(); queryClient.invalidateQueries({ queryKey: ['bookmarks'] }); + alert('북마크 추가가 완료되었습니다'); if (currentTab === 'all') { queryClient.invalidateQueries({ queryKey: ['MainProductLogin', category] }); @@ -69,6 +71,11 @@ const MainListItem = ({ } }; + const handleLogin = () => { + alert('로그인이 필요한 서비스입니다.'); + router.push('/sign'); + } + return (
@@ -118,6 +125,7 @@ const MainListItem = ({ src="/images/home/bookmark.svg" alt="Bookmark" className="w-[24px] h-[24px]" + onClick={handleLogin} /> )}