diff --git a/frontend/src/components/RestaurantCard/RestaurantCard.tsx b/frontend/src/components/RestaurantCard/RestaurantCard.tsx
index 7acbbadd4..dac544a24 100644
--- a/frontend/src/components/RestaurantCard/RestaurantCard.tsx
+++ b/frontend/src/components/RestaurantCard/RestaurantCard.tsx
@@ -7,10 +7,9 @@ import { FONT_SIZE, truncateText } from '~/styles/common';
import type { Celeb } from '~/@types/celeb.types';
import type { Restaurant } from '~/@types/restaurant.types';
-import useToggleRestaurantLike from '~/hooks/server/useToggleRestaurantLike';
-import PopUpContainer from '~/components/PopUpContainer';
import { Modal, ModalContent } from '~/components/@common/Modal';
import LoginModalContent from '~/components/LoginModalContent';
+import useToggleLikeNotUpdate from '~/hooks/server/useToggleLikeNotUpdate';
interface RestaurantCardProps {
restaurant: Restaurant;
@@ -22,7 +21,7 @@ interface RestaurantCardProps {
function RestaurantCard({ restaurant, celebs, size, type = 'list', setHoveredId = () => {} }: RestaurantCardProps) {
const { id, images, name, roadAddress, category, phoneNumber } = restaurant;
- const { isModalOpen, closeModal, toggleRestaurantLike } = useToggleRestaurantLike(restaurant);
+ const { isModalOpen, closeModal, toggleRestaurantLike, isLiked } = useToggleLikeNotUpdate(restaurant);
const onMouseEnter = () => setHoveredId(restaurant.id);
const onMouseLeave = () => setHoveredId(null);
@@ -49,7 +48,7 @@ function RestaurantCard({ restaurant, celebs, size, type = 'list', setHoveredId
-
+
@@ -62,7 +61,6 @@ function RestaurantCard({ restaurant, celebs, size, type = 'list', setHoveredId
{celebs && }
-
diff --git a/frontend/src/hooks/server/useDeleteUser.tsx b/frontend/src/hooks/server/useDeleteUser.tsx
index 6286ea668..079563345 100644
--- a/frontend/src/hooks/server/useDeleteUser.tsx
+++ b/frontend/src/hooks/server/useDeleteUser.tsx
@@ -44,11 +44,11 @@ const useDeleteUser = () => {
}
close();
- navigator('/');
+ window.location.href = '/';
}, []);
const onCancelDeleteUser = useCallback(() => {
- navigator('/');
+ navigator(-1);
}, []);
return { onCancelDeleteUser, deleteUser };
diff --git a/frontend/src/pages/MainPage.tsx b/frontend/src/pages/MainPage.tsx
index 25defff44..5785198cf 100644
--- a/frontend/src/pages/MainPage.tsx
+++ b/frontend/src/pages/MainPage.tsx
@@ -18,6 +18,7 @@ import type { RestaurantCategory } from '~/@types/restaurant.types';
import type { RestaurantListData } from '~/@types/api.types';
import useBottomSheetStatus from '~/hooks/store/useBottomSheetStatus';
import useMapState from '~/hooks/store/useMapState';
+import PopUpContainer from '~/components/PopUpContainer';
function MainPage() {
const isBottomSheetOpen = useBottomSheetStatus(state => state.isOpen);
@@ -120,6 +121,7 @@ function MainPage() {
/>
+
>
)}
diff --git a/frontend/src/pages/RestaurantDetail.tsx b/frontend/src/pages/RestaurantDetail.tsx
index 94b234446..2a0d3e339 100644
--- a/frontend/src/pages/RestaurantDetail.tsx
+++ b/frontend/src/pages/RestaurantDetail.tsx
@@ -250,7 +250,7 @@ function RestaurantDetail() {
}}
/>
-
+
)}
>
diff --git a/frontend/src/pages/WishListPage.tsx b/frontend/src/pages/WishListPage.tsx
index a13a9b08b..e98987993 100644
--- a/frontend/src/pages/WishListPage.tsx
+++ b/frontend/src/pages/WishListPage.tsx
@@ -4,6 +4,7 @@ import styled, { css } from 'styled-components';
import Footer from '~/components/@common/Footer';
import Header from '~/components/@common/Header';
+import PopUpContainer from '~/components/PopUpContainer';
import RestaurantWishList from '~/components/RestaurantWishList';
import useTokenState from '~/hooks/store/useTokenState';
@@ -32,6 +33,7 @@ function WishListPage() {
+
);
}