From d4f59658ab714325f7ff679997c22b306e766d5c Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Fri, 11 Oct 2024 15:46:55 +0700
Subject: <iman> add penawaran instan

---
 src-migrate/modules/product-detail/components/PriceAction.tsx | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx')

diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx
index 9021264e..a69e896c 100644
--- a/src-migrate/modules/product-detail/components/PriceAction.tsx
+++ b/src-migrate/modules/product-detail/components/PriceAction.tsx
@@ -5,6 +5,7 @@ import formatCurrency from '~/libs/formatCurrency';
 import { IProductDetail } from '~/types/product';
 import { useProductDetail } from '../stores/useProductDetail';
 import AddToCart from './AddToCart';
+import AddToQuotation from './AddToQuotation';
 import Link from 'next/link';
 import { getAuth } from '~/libs/auth';
 
@@ -110,6 +111,14 @@ const PriceAction = ({ product }: Props) => {
           />
         )}
       </div>
+      <div className='mt-4'>
+        <AddToQuotation
+          source='buy'
+          products={product}
+          variantId={activeVariantId}
+          quantity={Number(quantityInput)}
+        />
+      </div>
     </div>
   );
 };
-- 
cgit v1.2.3


From 17d4827393616734a37ff7b43b0f697283271164 Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Thu, 24 Oct 2024 10:12:11 +0700
Subject: <iman> avoid error code

---
 src-migrate/modules/product-detail/components/PriceAction.tsx | 1 -
 1 file changed, 1 deletion(-)

(limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx')

diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx
index a3126cdd..a9b17f92 100644
--- a/src-migrate/modules/product-detail/components/PriceAction.tsx
+++ b/src-migrate/modules/product-detail/components/PriceAction.tsx
@@ -8,7 +8,6 @@ import { IProductDetail } from '~/types/product';
 import { useProductDetail } from '../stores/useProductDetail';
 import AddToCart from './AddToCart';
 import AddToQuotation from './AddToQuotation';
-import Link from 'next/link';
 import { getAuth } from '~/libs/auth';
 
 type Props = {
-- 
cgit v1.2.3

