summaryrefslogtreecommitdiff
path: root/src-migrate/modules
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-11-05 11:02:08 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-11-05 11:02:08 +0700
commit0024a3687e75f6b746aebcbfaf2d7953fce3b05b (patch)
tree58daec615d5c177cdac948a7f14a17a597026cbb /src-migrate/modules
parent491d609e0e52998c024d634e759eca3275ce7943 (diff)
<Miqdad> cr renca manufacture logo
Diffstat (limited to 'src-migrate/modules')
-rw-r--r--src-migrate/modules/product-detail/components/Information.tsx42
-rw-r--r--src-migrate/modules/product-detail/styles/information.module.css2
2 files changed, 22 insertions, 22 deletions
diff --git a/src-migrate/modules/product-detail/components/Information.tsx b/src-migrate/modules/product-detail/components/Information.tsx
index fd73d8b6..d6959aa8 100644
--- a/src-migrate/modules/product-detail/components/Information.tsx
+++ b/src-migrate/modules/product-detail/components/Information.tsx
@@ -187,6 +187,27 @@ const Information = ({ product }: Props) => {
<div className={style['value']}>{selectedVariant?.code}</div>
</div>
<div className={style['row']}>
+ <div className={style['label']}>Berat Barang</div>
+ <div className={style['value']}>
+ {selectedVariant?.weight > 0 ? `${selectedVariant?.weight} Kg` : '-'}
+ </div>
+ </div>
+ <div className={style['row']}>
+ <div className={style['label']}>Terjual</div>
+ <div className={style['value']}>
+ {product.qty_sold > 0 ? formatToShortText(product.qty_sold) : '-'}
+ </div>
+ </div>
+ <div className={style['row']}>
+ <div className={style['label']}>Persiapan Barang</div>
+ {isLoading && (
+ <div className={style['value']}>
+ <Skeleton height={5} width={100} />
+ </div>
+ )}
+ {!isLoading && <div className={style['value']}>{sla?.sla_date}</div>}
+ </div>
+ <div className={style['row']}>
<div className={`${style['label']} items-center `}>Manufacture</div>
<div className={style['value']}>
{!!product.manufacture.name ? (
@@ -216,27 +237,6 @@ const Information = ({ product }: Props) => {
)}
</div>
</div>
- <div className={style['row']}>
- <div className={style['label']}>Berat Barang</div>
- <div className={style['value']}>
- {selectedVariant?.weight > 0 ? `${selectedVariant?.weight} Kg` : '-'}
- </div>
- </div>
- <div className={style['row']}>
- <div className={style['label']}>Terjual</div>
- <div className={style['value']}>
- {product.qty_sold > 0 ? formatToShortText(product.qty_sold) : '-'}
- </div>
- </div>
- <div className={style['row']}>
- <div className={style['label']}>Persiapan Barang</div>
- {isLoading && (
- <div className={style['value']}>
- <Skeleton height={5} width={100} />
- </div>
- )}
- {!isLoading && <div className={style['value']}>{sla?.sla_date}</div>}
- </div>
</div>
);
};
diff --git a/src-migrate/modules/product-detail/styles/information.module.css b/src-migrate/modules/product-detail/styles/information.module.css
index 5aa64fe5..b1a8b256 100644
--- a/src-migrate/modules/product-detail/styles/information.module.css
+++ b/src-migrate/modules/product-detail/styles/information.module.css
@@ -6,7 +6,7 @@
@apply flex p-4 rounded-sm bg-gray-100;
}
-.row:nth-child(odd) {
+.row:nth-child(even) {
@apply bg-white;
}