From 147171373cf146394d0fc03fdab2b4a833df8c4b Mon Sep 17 00:00:00 2001 From: vinix Date: Thu, 4 Dec 2025 13:59:25 +0700 Subject: [PATCH] feat: update quantity display and stock update button visibility in SparepartCardList component --- .../sparepart/component/SparepartCardList.jsx | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/pages/master/sparepart/component/SparepartCardList.jsx b/src/pages/master/sparepart/component/SparepartCardList.jsx index 663d548..b635b5d 100644 --- a/src/pages/master/sparepart/component/SparepartCardList.jsx +++ b/src/pages/master/sparepart/component/SparepartCardList.jsx @@ -298,7 +298,6 @@ const SparepartCardList = ({ > {item[header]} - Qty: {item.sparepart_qty || 0} Stok: {item.sparepart_stok || 'Not Available'} @@ -309,9 +308,9 @@ const SparepartCardList = ({ style={{ marginBottom: '8px', display: 'flex', - justifyContent: 'center', }} > + Qty + {quantity !== 0 && ( + + )}