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 کالا
-

+

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