From 992dcc47ea6e05287179785d7e251f65cc7aaf40 Mon Sep 17 00:00:00 2001 From: Iqbal Rizqi Kurniawan Date: Thu, 2 Oct 2025 10:40:48 +0700 Subject: [PATCH] update: refactor action buttons in ListDevice component for improved functionality and layout --- .../master/device/component/ListDevice.jsx | 72 ++++++------------- 1 file changed, 21 insertions(+), 51 deletions(-) diff --git a/src/pages/master/device/component/ListDevice.jsx b/src/pages/master/device/component/ListDevice.jsx index 6e5404e..39b535f 100644 --- a/src/pages/master/device/component/ListDevice.jsx +++ b/src/pages/master/device/component/ListDevice.jsx @@ -33,7 +33,7 @@ import ExcelJS from 'exceljs'; import { saveAs } from 'file-saver'; import logoPiEnergi from '../../../../assets/images/logo/pi-energi.png'; -const columns = (items, handleClickMenu) => [ +const columns = (showPreviewModal, showEditModal, showDeleteDialog) => [ { title: 'ID', dataIndex: 'device_id', @@ -89,18 +89,26 @@ const columns = (items, handleClickMenu) => [ title: 'Aksi', key: 'aksi', align: 'center', - width: '5%', + width: '15%', render: (_, record) => ( - handleClickMenu(key, record), - }} - trigger={['click']} - placement="bottomRight" - > -