refactor: customers alerts.

This commit is contained in:
elforjani3
2021-01-27 20:01:33 +02:00
parent 29259f460d
commit 25d4b558b6
13 changed files with 311 additions and 213 deletions

View File

@@ -27,6 +27,7 @@ function ItemBulkDeleteAlert({
}) {
const { formatMessage } = useIntl();
const [isLoading, setLoading] = useState(false);
// handle cancel item bulk delete alert.
const handleCancelBulkDelete = () => {
closeAlert(name);
@@ -49,7 +50,6 @@ function ItemBulkDeleteAlert({
closeAlert(name);
});
};
return (
<Alert
cancelButtonText={<T id={'cancel'} />}
@@ -61,6 +61,7 @@ function ItemBulkDeleteAlert({
isOpen={isOpen}
onCancel={handleCancelBulkDelete}
onConfirm={handleConfirmBulkDelete}
loading={isLoading}
>
<p>
<T id={'once_delete_these_items_you_will_not_able_restore_them'} />