From 1841a2d178a332633470c4cda629a2600b3e7c3b Mon Sep 17 00:00:00 2001 From: Rafi Zadanly Date: Tue, 11 Apr 2023 14:56:42 +0700 Subject: layout popup add to cart --- .../product/components/Product/ProductDesktop.jsx | 58 +++++++++++----------- .../product/components/Product/ProductMobile.jsx | 57 ++++++++++----------- 2 files changed, 54 insertions(+), 61 deletions(-) (limited to 'src') diff --git a/src/lib/product/components/Product/ProductDesktop.jsx b/src/lib/product/components/Product/ProductDesktop.jsx index 0bff3ceb..bb2b2db9 100644 --- a/src/lib/product/components/Product/ProductDesktop.jsx +++ b/src/lib/product/components/Product/ProductDesktop.jsx @@ -321,38 +321,36 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { -
- setAddCartAlert(false)} - > -
-
- {product.name} -
-
- {product.name} -
-
- - Lihat Keranjang - -
+ + setAddCartAlert(false)} + > +
+
+ {product.name}
-
-
Kamu Mungkin Juga Suka
- - - +
{product.name}
+
+ + Lihat Keranjang +
- -
+
+ +
+
Kamu Mungkin Juga Suka
+ + + +
+
) diff --git a/src/lib/product/components/Product/ProductMobile.jsx b/src/lib/product/components/Product/ProductMobile.jsx index 43ef0e5e..0a7d690a 100644 --- a/src/lib/product/components/Product/ProductMobile.jsx +++ b/src/lib/product/components/Product/ProductMobile.jsx @@ -89,7 +89,6 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { quantity, selected: true }) - // toast.success('Berhasil menambahkan ke keranjang') setAddCartAlert(true) } @@ -270,37 +269,33 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => {
-
- setAddCartAlert(false)} - > -
-
- {product.name} -
-
- {product.name} -
-
- - Lihat Keranjang - -
-
-
-
Kamu Mungkin Juga Suka
- - - -
-
+ setAddCartAlert(false)} + > +
+
+ {product.name} +
+
{product.name}
+
+ + Lihat Keranjang + +
+
+
+
Kamu Mungkin Juga Suka
+ + +
+
) } -- cgit v1.2.3