diff --git a/src/components/AddToCart/index.js b/src/components/AddToCart/index.js index 14c83bf..1c0371b 100644 --- a/src/components/AddToCart/index.js +++ b/src/components/AddToCart/index.js @@ -11,7 +11,11 @@ const AddToCartCard = ({ sendingTime, button, price, - profit + profit, + showProduct, + productName, + productImg, + productCat }) =>{ const specialities = [ { @@ -28,7 +32,16 @@ const AddToCartCard = ({ } ]; return( -
+
+ { + showProduct &&
+ +
+

{productName}

+

{productCat}

+
+
+ } {specialities.map((item, index) => (
{item.icon && } diff --git a/src/views/Product/Desktop/ProductOverAll/index.js b/src/views/Product/Desktop/ProductOverAll/index.js index c3e7c7d..041e5cc 100644 --- a/src/views/Product/Desktop/ProductOverAll/index.js +++ b/src/views/Product/Desktop/ProductOverAll/index.js @@ -10,6 +10,7 @@ import Comment from "../../Comment"; import Rate from "../../Rate"; import StarRating from "../../../../components/StarRating"; import AddToCartCard from "../../../../components/AddToCart"; +import logo from '../../../../assets/images/user.png'; export const ProductOverAll = ({ productType, @@ -117,6 +118,12 @@ export const ProductOverAll = ({ sendingTime={20} numberOfSuggest={160} profit={12000} + // showProduct + productCat={grades[book?.gradeId]} + productImg={`https://dnvn.ir/api/v1/file/${book?.fileIds}`} + productName={type === "digital" + ? book?.product[0]?.name + : book?.product[1]?.name} button={