From 9094c851d8ac9d862f1b2c4b092022cca0ab09dd Mon Sep 17 00:00:00 2001 From: Joshua Dinh Date: Mon, 16 Dec 2024 20:09:52 +0900 Subject: [PATCH] refactor: update delete donation list table row action --- src/Donations/resources/components/DonationRowActions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Donations/resources/components/DonationRowActions.tsx b/src/Donations/resources/components/DonationRowActions.tsx index 1fdb69f3a1..159668525f 100644 --- a/src/Donations/resources/components/DonationRowActions.tsx +++ b/src/Donations/resources/components/DonationRowActions.tsx @@ -20,7 +20,7 @@ export const DonationRowActions = ({item, removeRow, setUpdateErrors, parameters const deleteItem = async (selected) => await fetchAndUpdateErrors(parameters, '/delete', item.id, 'DELETE'); - const confirmDelete = (selected) =>

{sprintf(__('Really delete donation #%d?', 'give'), item.id)}

; + const confirmDelete = (selected) =>

{sprintf(__('Are you sure you want to delete the following donation #%d?', 'give'), item.id)}

; const confirmModal = (event) => { showConfirmModal(__('Delete', 'give'), confirmDelete, deleteItem, 'danger');