From 1475593324319d1faf377f2d00a22a4b3caa3faa Mon Sep 17 00:00:00 2001 From: trisusilo48 Date: Thu, 12 Sep 2024 15:08:21 +0700 Subject: price action --- .../modules/product-detail/components/PriceAction.tsx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (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 6042d578..a39877e9 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -7,6 +7,7 @@ import { useProductDetail } from '../stores/useProductDetail'; import AddToCart from './AddToCart'; import Link from 'next/link'; import { getAuth } from '~/libs/auth'; +import Image from 'next/image'; type Props = { product: IProductDetail; @@ -53,7 +54,7 @@ const PriceAction = ({ product }: Props) => { return (
{!!activePrice && activePrice.price > 0 && ( @@ -116,10 +117,23 @@ const PriceAction = ({ product }: Props) => { Stock : {sla?.qty}{' '}
+
+ {product?.is_in_bu && ( + + pickup now + + )} +
-
+