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 (