From 39ac03570911a0b7b98701250209d851f500d266 Mon Sep 17 00:00:00 2001 From: mahdi Date: Tue, 11 Jan 2022 15:07:29 +0330 Subject: [PATCH] update --- src/components/ProductSuggestion/index.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/components/ProductSuggestion/index.js b/src/components/ProductSuggestion/index.js index 6848402..5707740 100644 --- a/src/components/ProductSuggestion/index.js +++ b/src/components/ProductSuggestion/index.js @@ -3,7 +3,7 @@ import React, { useState } from "react"; import productImg from "./product-chair.svg"; import plus from "./plus.svg"; -const ProductSuggestion = ({ suggestions }) => { +const ProductSuggestion = ({ suggestions, selected }) => { const [selectedProduct, setSelectedProduct] = useState(null); return ( @@ -14,7 +14,7 @@ const ProductSuggestion = ({ suggestions }) => { {/* product design */}
{suggestions.map((suggestion, index) => ( -
+
{ تومان

- انتخاب شما + {suggestion.selected && ( + انتخاب شما + )}
@@ -47,16 +49,16 @@ const ProductSuggestion = ({ suggestions }) => { {/* bottom */}
-

+

جمع لوازم اختیاری خریداری شده 56/894/400 تومان

- + 1 کالا
-

+

در صورت تمایل می توانید موارد بالا را به سبد خرید اضافه کنید