summaryrefslogtreecommitdiff
path: root/src/lib/product/components/Product/ProductDesktopVariant.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-10-23 13:25:20 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-10-23 13:25:20 +0700
commit744405d8e62135372acb6c73fd7b66254309d0aa (patch)
tree58b3b6631d1601d9d853c8febaf2082c1b330976 /src/lib/product/components/Product/ProductDesktopVariant.jsx
parentdca7af433ca57e976b29620c58de98e94388e2b9 (diff)
<iman> update when tambah keranjang
Diffstat (limited to 'src/lib/product/components/Product/ProductDesktopVariant.jsx')
-rw-r--r--src/lib/product/components/Product/ProductDesktopVariant.jsx11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/lib/product/components/Product/ProductDesktopVariant.jsx b/src/lib/product/components/Product/ProductDesktopVariant.jsx
index 4dd2ce3e..4ecd15c8 100644
--- a/src/lib/product/components/Product/ProductDesktopVariant.jsx
+++ b/src/lib/product/components/Product/ProductDesktopVariant.jsx
@@ -32,7 +32,7 @@ const ProductDesktopVariant = ({
const router = useRouter();
let auth = useAuth();
const { slug } = router.query;
-
+ const { srsltid } = router.query;
const [lowestPrice, setLowestPrice] = useState(null);
const [addCartAlert, setAddCartAlert] = useState(false);
@@ -74,7 +74,7 @@ const ProductDesktopVariant = ({
const handleAddToCart = (variant) => {
if (!auth) {
- router.push(`/login?next=/shop/product/${slug}`);
+ router.push(`/login?next=/shop/product/${slug}?srsltid=${srsltid}`);
return;
}
const quantity = variantQuantityRefs.current[product.id].value;
@@ -292,13 +292,16 @@ const ProductDesktopVariant = ({
</div>
<div className='p-4 md:p-6 md:bg-gray-50 rounded-xl'>
- <h2 className='text-h-md md:text-h-lg font-medium'>Informasi Produk</h2>
+ <h2 className='text-h-md md:text-h-lg font-medium'>
+ Informasi Produk
+ </h2>
<div className='h-4' />
<div
className='leading-relaxed text-gray-700'
dangerouslySetInnerHTML={{
__html:
- !product.parent.description || product.parent.description == '<p><br></p>'
+ !product.parent.description ||
+ product.parent.description == '<p><br></p>'
? 'Belum ada deskripsi'
: product.parent.description,
}}