From aa1e0a34f5f332026d386b197d62c2cc3d9f43ad Mon Sep 17 00:00:00 2001 From: Miqdad Date: Wed, 5 Nov 2025 12:00:12 +0700 Subject: cr prod detail price --- .../modules/header/components/SearchBar.tsx | 22 ++++++++++------------ .../product-detail/components/PriceAction.tsx | 11 ++++++----- .../product-detail/components/ProductDetail.tsx | 4 ++-- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/src-migrate/modules/header/components/SearchBar.tsx b/src-migrate/modules/header/components/SearchBar.tsx index ec17abe8..750860ba 100644 --- a/src-migrate/modules/header/components/SearchBar.tsx +++ b/src-migrate/modules/header/components/SearchBar.tsx @@ -1,24 +1,22 @@ - -import { MagnifyingGlassIcon } from '@heroicons/react/24/outline' +import { MagnifyingGlassIcon } from '@heroicons/react/24/outline'; const SearchBar = () => { return ( -
+ -
- ) -} + ); +}; -export default SearchBar \ No newline at end of file +export default SearchBar; diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index a84fa134..03148150 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -180,9 +180,9 @@ const PriceAction = ({ product }: Props) => { Rp {formatCurrency(finalAfterVoucher)} -
+ {/*
Rp {formatCurrency(basePriceForDisplay)} -
+
*/} ) : ( // Normal tanpa disc & tanpa voucher @@ -232,14 +232,15 @@ const PriceAction = ({ product }: Props) => { // Tidak ada discount bawaan, tapi ada voucher → tampilkan harga setelah voucher <>
+ Rp {formatCurrency(finalAfterVoucher)}
-
+ {/*
Rp {formatCurrency(basePriceForDisplay)} -
+
*/} ) : ( // Normal tanpa disc & tanpa voucher diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index c9a05993..dc12b0f7 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -313,7 +313,7 @@ const ProductDetail = ({ product }: Props) => { {/* ===== Kolom kanan: info ===== */}
-
+ {/*
{isMobile && voucherDiscount > 0 && (
{' '} @@ -324,7 +324,7 @@ const ProductDetail = ({ product }: Props) => { {' '} saat checkout
- )} + )} */}

{product.name}

-- cgit v1.2.3