From b3f91e47855285fc391aacec2ef39ee0bdb9fabd Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Wed, 26 Jan 2022 17:18:50 +0330 Subject: [PATCH] Add to Cart Footer Added --- src/components/AddToCart/index.js | 20 +++++++++++++++++-- .../Product/Desktop/ProductOverAll/index.js | 4 +++- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/components/AddToCart/index.js b/src/components/AddToCart/index.js index 1c0371b..c7f48db 100644 --- a/src/components/AddToCart/index.js +++ b/src/components/AddToCart/index.js @@ -15,7 +15,8 @@ const AddToCartCard = ({ showProduct, productName, productImg, - productCat + productCat, + footer }) =>{ const specialities = [ { @@ -32,7 +33,8 @@ const AddToCartCard = ({ } ]; return( -
+ <> +
{ showProduct &&
@@ -58,6 +60,20 @@ const AddToCartCard = ({ {button}
+ {footer && +
+ { + footer == 'SendBack' && + <> + +
+

بازگشت بی چون و چرا

+

ما خیلی خوب هستیم و دوستتون داریم در صورتی که از کالایی خوشتون نیومد میتونید بی قید و شرط بسش بدید

+
+ + } +
} + ); }; diff --git a/src/views/Product/Desktop/ProductOverAll/index.js b/src/views/Product/Desktop/ProductOverAll/index.js index 2665049..f3d166e 100644 --- a/src/views/Product/Desktop/ProductOverAll/index.js +++ b/src/views/Product/Desktop/ProductOverAll/index.js @@ -118,7 +118,7 @@ export const ProductOverAll = ({ sendingTime={20} numberOfSuggest={160} profit={12000} - showProduct + // showProduct productCat={grades[book?.gradeId]} productImg={`https://dnvn.ir/api/v1/file/${book?.fileIds}`} productName={type === "digital" @@ -147,6 +147,8 @@ export const ProductOverAll = ({ /> } + footer='SendBack' + />