From 702f43a7190d65c2370e7019311cc26c2cc0eafd Mon Sep 17 00:00:00 2001 From: "HATEC\\SPVDEV001" Date: Tue, 6 Jun 2023 17:01:23 +0700 Subject: program promotion --- src/core/components/elements/Popup/BottomPopup.jsx | 2 +- .../product/components/Product/ProductDesktop.jsx | 28 ++++++ .../product/components/Product/ProductMobile.jsx | 8 ++ src/lib/promotinProgram/components/HomePage.jsx | 69 +++++++++++++ .../promotinProgram/components/PromotionType.jsx | 110 +++++++++++++++++++++ src/pages/index.jsx | 7 ++ 6 files changed, 223 insertions(+), 1 deletion(-) create mode 100644 src/lib/promotinProgram/components/HomePage.jsx create mode 100644 src/lib/promotinProgram/components/PromotionType.jsx (limited to 'src') diff --git a/src/core/components/elements/Popup/BottomPopup.jsx b/src/core/components/elements/Popup/BottomPopup.jsx index 0f4088d4..829ff2a6 100644 --- a/src/core/components/elements/Popup/BottomPopup.jsx +++ b/src/core/components/elements/Popup/BottomPopup.jsx @@ -58,7 +58,7 @@ const BottomPopup = ({ children, active = false, title, close, className = '' }) className={`fixed left-1/2 -translate-x-1/2 translate-y-1/2 md:w-1/4 lg:w-1/3 border border-gray_r-6 rounded-xl z-[60] p-4 pt-0 bg-white max-h-[80vh] overflow-auto ${className}`} >
-
{title}
+
{title}
{close && (
+
+
Promotion Program
+
+ +
+
@@ -229,6 +237,16 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { )} +
+ +
{product.variants.length > 1 ? ( +
-
Promotion Program
-
+
@@ -237,7 +243,7 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { )} -
+ {/*
-
+
*/} {product.variants.length > 1 ? (
- setPromotionType(false)} - > -
- -
-
) diff --git a/src/lib/product/components/Product/ProductMobile.jsx b/src/lib/product/components/Product/ProductMobile.jsx index 5ed796ae..1c2974b0 100644 --- a/src/lib/product/components/Product/ProductMobile.jsx +++ b/src/lib/product/components/Product/ProductMobile.jsx @@ -172,11 +172,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => {
- {/* */} - +