From 9e8191f8f813bad8f14659e790a75be85bebe7d0 Mon Sep 17 00:00:00 2001 From: Antony Kurniawan Date: Fri, 12 Dec 2025 12:43:14 +0700 Subject: [PATCH] repair: sparepart brand-device --- .../component/CustomSparepartCard.jsx | 327 ++++++++++-------- .../component/SparepartCardSelect.jsx | 249 ------------- .../brandDevice/component/SparepartForm.jsx | 26 -- ...parepartSelect.jsx => SparepartSelect.jsx} | 141 ++++---- 4 files changed, 249 insertions(+), 494 deletions(-) delete mode 100644 src/pages/master/brandDevice/component/SparepartCardSelect.jsx delete mode 100644 src/pages/master/brandDevice/component/SparepartForm.jsx rename src/pages/master/brandDevice/component/{SingleSparepartSelect.jsx => SparepartSelect.jsx} (58%) diff --git a/src/pages/master/brandDevice/component/CustomSparepartCard.jsx b/src/pages/master/brandDevice/component/CustomSparepartCard.jsx index f3c10b5..5327cee 100644 --- a/src/pages/master/brandDevice/component/CustomSparepartCard.jsx +++ b/src/pages/master/brandDevice/component/CustomSparepartCard.jsx @@ -20,7 +20,6 @@ const CustomSparepartCard = ({ }) => { const [previewModalVisible, setPreviewModalVisible] = useState(false); - // Construct image source with proper fallback const getImageSrc = () => { if (sparepart.sparepart_foto) { if (sparepart.sparepart_foto.startsWith('http')) { @@ -56,7 +55,6 @@ const CustomSparepartCard = ({ const getCardActions = () => { const actions = []; - // Preview button if (showPreview) { actions.push(