From 33ccd445bf3e72eafeadc920de0f788af91e57fd Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Tue, 25 Jul 2023 15:23:59 +0700
Subject: sla mobile

---
 src/lib/product/components/Product/ProductDesktop.jsx | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

(limited to 'src/lib/product/components/Product/ProductDesktop.jsx')

diff --git a/src/lib/product/components/Product/ProductDesktop.jsx b/src/lib/product/components/Product/ProductDesktop.jsx
index 41eedc55..a7c1d907 100644
--- a/src/lib/product/components/Product/ProductDesktop.jsx
+++ b/src/lib/product/components/Product/ProductDesktop.jsx
@@ -397,8 +397,21 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => {
                           <div className='text-center'>
                             <Spinner aria-label='Center-aligned spinner example' />
                           </div>
-                        ) : (
+                        ) : variant?.sla?.qty > 0 ? (
                           variant?.sla?.qty
+                        ) : (
+                          <a
+                            href={whatsappUrl('product', {
+                              name: variant.name,
+                              manufacture: product.manufacture?.name,
+                              url: createSlug('/shop/product/', product.name, product.id, true)
+                            })}
+                            className='text-danger-500 font-medium'
+                            target="_blank"
+                            rel="noreferrer noopener"
+                          >
+                            Tanya Admin
+                          </a>
                         )}
                       </td>
                       <td className='flex justify-center'>
-- 
cgit v1.2.3

