diff options
| author | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-23 08:55:34 +0700 |
|---|---|---|
| committer | Miqdad <ahmadmiqdad27@gmail.com> | 2025-08-23 08:55:34 +0700 |
| commit | 47cc09c7f74b2c37f0fc1a98e50f7d76774ea4a4 (patch) | |
| tree | 4b482a7c07200e4e9605ed57820c6fee08af0593 /src-migrate | |
| parent | a1b0e672387747085c85c6c446cea49f09af7719 (diff) | |
<Miqdad> Move price
Diffstat (limited to 'src-migrate')
| -rw-r--r-- | src-migrate/modules/product-detail/components/PriceAction.tsx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx index f5c2d7b3..7548e016 100644 --- a/src-migrate/modules/product-detail/components/PriceAction.tsx +++ b/src-migrate/modules/product-detail/components/PriceAction.tsx @@ -92,13 +92,13 @@ const PriceAction = ({ product }: Props) => { <div className={style['disc-badge']}> {Math.floor(activePrice.discount_percentage)}% </div> - <div className={style['disc-price']}> - Rp {formatCurrency(activePrice.price || 0)} + <div className={style['main-price']}> + Rp {formatCurrency(activePrice.price_discount || 0)} </div> </> )} - <div className={style['main-price']}> - Rp {formatCurrency(activePrice.price_discount || 0)} + <div className={style['disc-price']}> + Rp {formatCurrency(activePrice.price || 0)} </div> </div> <div className='h-1' /> @@ -107,19 +107,19 @@ const PriceAction = ({ product }: Props) => { {formatCurrency(Math.round(activePrice.price_discount * PPN))} </div> {isMobile && ( - <div> - <Skeleton - isLoaded={sla} - h='21px' - // w={16} - className={sla?.qty < 10 ? 'text-red-600 font-medium' : ''} - > - Stock : {sla?.qty}{' '} - </Skeleton> - {/* <span className={sla?.qty < 10 ? 'text-red-600 font-medium' : ''}> + <div> + <Skeleton + isLoaded={sla} + h='21px' + // w={16} + className={sla?.qty < 10 ? 'text-red-600 font-medium' : ''} + > + Stock : {sla?.qty}{' '} + </Skeleton> + {/* <span className={sla?.qty < 10 ? 'text-red-600 font-medium' : ''}> {' '} </span> */} - </div> + </div> )} </> )} |
