Skip to content

Commit

Permalink
refactor: update delete donation list table row action
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaHungDinh committed Dec 16, 2024
1 parent cba9501 commit 9094c85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Donations/resources/components/DonationRowActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => <p>{sprintf(__('Really delete donation #%d?', 'give'), item.id)}</p>;
const confirmDelete = (selected) => <p>{sprintf(__('Are you sure you want to delete the following donation #%d?', 'give'), item.id)}</p>;

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

0 comments on commit 9094c85

Please sign in to comment.