From dcdd8c9b8d45e37268bfdce9772929323cd92745 Mon Sep 17 00:00:00 2001 From: Rafiafrzl Date: Thu, 9 Oct 2025 14:50:26 +0700 Subject: [PATCH] refactor ListEventAlarm component by removing unused detail view handler and adjusting column widths --- .../eventAlarm/component/ListEventAlarm.jsx | 20 ++----------------- 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/src/pages/eventAlarm/component/ListEventAlarm.jsx b/src/pages/eventAlarm/component/ListEventAlarm.jsx index bf4bfe6..d313c3e 100644 --- a/src/pages/eventAlarm/component/ListEventAlarm.jsx +++ b/src/pages/eventAlarm/component/ListEventAlarm.jsx @@ -65,11 +65,6 @@ const initialAlarmsData = [ ]; const ListEventAlarm = memo(function ListEventAlarm(props) { - const handleViewDetail = (record) => { - props.setSelectedData(record); - props.setActionMode('preview'); - }; - const columns = [ { title: 'No', @@ -88,7 +83,7 @@ const ListEventAlarm = memo(function ListEventAlarm(props) { title: 'Plant Sub Section', dataIndex: 'plant_sub_section', key: 'plant_sub_section', - width: '20%', + width: '25%', }, { title: 'Device', @@ -106,18 +101,7 @@ const ListEventAlarm = memo(function ListEventAlarm(props) { title: 'Engineer', dataIndex: 'engineer', key: 'engineer', - width: '10%', - }, - { - title: 'Action', - key: 'action', - width: '10%', - align: 'center', - render: (_, record) => ( - - ), + width: '15%', }, ]; const [trigerFilter, setTrigerFilter] = useState(false);