From 1cd9cf765cba3db37eae05205f4c418bca00f773 Mon Sep 17 00:00:00 2001 From: vinix Date: Mon, 24 Nov 2025 15:57:12 +0700 Subject: [PATCH] fix dual action --- src/components/Global/CardList.jsx | 34 +++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/src/components/Global/CardList.jsx b/src/components/Global/CardList.jsx index bf8f373..298ac0c 100644 --- a/src/components/Global/CardList.jsx +++ b/src/components/Global/CardList.jsx @@ -58,34 +58,34 @@ const CardList = ({ style={getCardStyle(fieldColor ? item[fieldColor] : cardColor)} actions={[ showPreviewModal && ( - showPreviewModal(item)} - /> + showPreviewModal(item)} + /> ), showEditModal && ( - showEditModal(item)} - /> + showEditModal(item)} + /> ), showDeleteDialog && ( - showDeleteDialog(item)} - /> + showDeleteDialog(item)} + /> ), - ].filter(Boolean)} // <== Hapus elemen yang undefined + ].filter(Boolean)} // <== Hapus elemen yang undefined >
{column.map((itemCard, index) => ( {!itemCard.hidden && itemCard.title !== 'No' && - itemCard.title !== 'Aksi' && ( + itemCard.title !== 'Action' && (

{itemCard.title}:{' '} {itemCard.render