From a6457728fbef109d7cfb43d0785128a75f56bc36 Mon Sep 17 00:00:00 2001 From: m-oooooonchild Date: Tue, 3 Dec 2024 15:02:29 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20=EC=83=81=EC=84=B8=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EC=83=81=ED=92=88=20=EC=82=AC=EC=A7=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ProductDetailPage/ProductDetailPage.tsx | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/pages/Product/ProductDetailPage/ProductDetailPage.tsx b/src/pages/Product/ProductDetailPage/ProductDetailPage.tsx index 47c7d01..cfdcf75 100644 --- a/src/pages/Product/ProductDetailPage/ProductDetailPage.tsx +++ b/src/pages/Product/ProductDetailPage/ProductDetailPage.tsx @@ -26,6 +26,7 @@ export interface ProductProps { materialInfo: string; buyerNotice: string; options: Option[]; + imgs: Image[]; } interface Option { @@ -34,6 +35,11 @@ interface Option { optionPrice: number; } +interface Image { + imgId: number; + productImgUrl: string; +} + const ProductImgData = { reviewImg1: '', reviewImg2: '', @@ -63,6 +69,7 @@ const productDummyData: ProductProps[] = [ { optionId: 2, optionName: 'M 사이즈', optionPrice: 2000 }, { optionId: 3, optionName: 'S 사이즈', optionPrice: 1000 }, ], + imgs: [{ imgId: 0, productImgUrl: '' }], }, ]; @@ -111,11 +118,11 @@ const ProductDetailPage = () => { {productInfo ? ( <>