summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components/PriceAction.tsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-11-06 15:45:42 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-11-06 15:45:42 +0700
commit640c86b03f866f8fd3e2254d4611a3faf53386b4 (patch)
tree3f4758f99df65a73fb9b1f6724f4e5996d104297 /src-migrate/modules/product-detail/components/PriceAction.tsx
parentf7a32dbccbdefd478ed6bd6190bd4fa395eda720 (diff)
parent1205b935f2a88629b6861ab083cbe70c58cb56c7 (diff)
Merge branch 'Feature/penawaran-instan' into CR/new_product_detail
Diffstat (limited to 'src-migrate/modules/product-detail/components/PriceAction.tsx')
-rw-r--r--src-migrate/modules/product-detail/components/PriceAction.tsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx
index dc384dda..a44e35ec 100644
--- a/src-migrate/modules/product-detail/components/PriceAction.tsx
+++ b/src-migrate/modules/product-detail/components/PriceAction.tsx
@@ -7,6 +7,8 @@ import formatCurrency from '~/libs/formatCurrency';
import { IProductDetail } from '~/types/product';
import { useProductDetail } from '../stores/useProductDetail';
import AddToCart from './AddToCart';
+import AddToQuotation from './AddToQuotation';
+import { getAuth } from '~/libs/auth';
import useDevice from '@/core/hooks/useDevice';
type Props = {
@@ -164,6 +166,14 @@ const PriceAction = ({ product }: Props) => {
/>
)}
</div>
+ <div className='mt-4'>
+ <AddToQuotation
+ source='buy'
+ products={product}
+ variantId={activeVariantId}
+ quantity={Number(quantityInput)}
+ />
+ </div>
</div>
);
};