diff --git a/admin-spa/src/routes/Settings/Shipping.tsx b/admin-spa/src/routes/Settings/Shipping.tsx index a757f73..e1f690a 100644 --- a/admin-spa/src/routes/Settings/Shipping.tsx +++ b/admin-spa/src/routes/Settings/Shipping.tsx @@ -297,13 +297,22 @@ export default function ShippingPage() {

- +
+ + +
{/* Shipping Rates */} @@ -761,7 +770,7 @@ export default function ShippingPage() { - {/* Delete Confirmation Dialog */} + {/* Delete Method Confirmation Dialog */} setDeletingMethod(null)}> @@ -783,6 +792,32 @@ export default function ShippingPage() { + {/* Delete Zone Confirmation Dialog */} + setDeletingZone(null)}> + + + {__('Delete Shipping Zone?')} + + {__('Are you sure you want to delete')} {deletingZone?.name}? + {' '}{__('All shipping methods in this zone will also be deleted. This action cannot be undone.')} + + + + {__('Cancel')} + { + if (deletingZone) { + deleteZoneMutation.mutate(deletingZone.id); + } + }} + className="bg-destructive text-destructive-foreground hover:bg-destructive/90" + > + {__('Delete Zone')} + + + + + ); }