From d2ca638c342c90ca228b0abebcae6fe3ea1ce549 Mon Sep 17 00:00:00 2001 From: Suhyeon Jeon Date: Fri, 7 Mar 2025 12:02:52 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=EA=B0=80=EA=B2=8C=20=EC=83=81?= =?UTF-8?q?=EC=84=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../detail/[id]/_components/StoreDetail.tsx | 26 +++---------------- 1 file changed, 4 insertions(+), 22 deletions(-) diff --git a/src/app/store/detail/[id]/_components/StoreDetail.tsx b/src/app/store/detail/[id]/_components/StoreDetail.tsx index 94d7b05..1b9799e 100644 --- a/src/app/store/detail/[id]/_components/StoreDetail.tsx +++ b/src/app/store/detail/[id]/_components/StoreDetail.tsx @@ -244,37 +244,20 @@ const StoreDetail = ({ storeId }: { storeId: string }) => { )}
{!storeDetail ? ( - + ) : ( -
{ - toast({ - description: '준비중입니다.', - position: 'center', - }) - }} - > +
리뷰 {storeDetail.rating} ({storeDetail.reviewCount})
-
)} {!storeDetail ? ( - + ) : ( -
{ - toast({ - description: '준비중입니다.', - position: 'center', - }) - }} - > +
가게 @@ -282,7 +265,6 @@ const StoreDetail = ({ storeId }: { storeId: string }) => { ({formatDistance(storeDetail.deliveryDistance)})
-
)}
From 371e2054af324294a5057c4adb2b777f963650f1 Mon Sep 17 00:00:00 2001 From: Suhyeon Jeon Date: Fri, 7 Mar 2025 12:03:04 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=EA=B0=80=EA=B2=8C=20=EC=83=81?= =?UTF-8?q?=EC=84=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/store/detail/[id]/_components/StoreDetail.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/app/store/detail/[id]/_components/StoreDetail.tsx b/src/app/store/detail/[id]/_components/StoreDetail.tsx index 1b9799e..e44265d 100644 --- a/src/app/store/detail/[id]/_components/StoreDetail.tsx +++ b/src/app/store/detail/[id]/_components/StoreDetail.tsx @@ -12,7 +12,6 @@ import { Skeleton } from '@/components/shadcn/skeleton' import useBottomSheet from '@/hooks/useBottomSheet' import { useScrollToTop } from '@/hooks/useScrollToTop' import { useThrottle } from '@/hooks/useThrottle' -import { useToast } from '@/hooks/useToast' import { formatDistance } from '@/lib/format' import { modalStore } from '@/store/modal' import { orderDetailStore } from '@/store/orderDetail' @@ -57,7 +56,6 @@ const StoreDetail = ({ storeId }: { storeId: string }) => { const { orderDetail } = orderDetailStore() const { BottomSheet } = useBottomSheet() - const { toast } = useToast() const { topRef, scrollToTop, showScrollButton } = useScrollToTop({ callBack: () => { containerRef.current?.scrollTo({