fix: messages appToaster.

This commit is contained in:
elforjani3
2021-01-25 18:47:24 +02:00
parent 3d080244e6
commit 9fa329bef5
32 changed files with 175 additions and 187 deletions

View File

@@ -195,8 +195,8 @@ const EstimateForm = ({
message: formatMessage(
{
id: isNewMode
? 'the_estimate_has_been_successfully_edited'
: 'the_estimate_has_been_successfully_created',
? 'the_estimate_has_been_edited_successfully'
: 'the_estimate_has_been_created_successfully',
},
{ number: values.estimate_number },
),

View File

@@ -86,7 +86,7 @@ function EstimatesList({
requestDeleteEstimate(deleteEstimate.id).then(() => {
AppToaster.show({
message: formatMessage({
id: 'the_estimate_has_been_successfully_deleted',
id: 'the_estimate_has_been_deleted_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -111,7 +111,7 @@ function EstimatesList({
setDeliverEstimate(false);
AppToaster.show({
message: formatMessage({
id: 'the_estimate_has_been_successfully_delivered',
id: 'the_estimate_has_been_delivered_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -139,7 +139,7 @@ function EstimatesList({
setApproveEstimate(false);
AppToaster.show({
message: formatMessage({
id: 'the_estimate_has_been_successfully_approved',
id: 'the_estimate_has_been_approved_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -167,7 +167,7 @@ function EstimatesList({
setRejectEstimate(false);
AppToaster.show({
message: formatMessage({
id: 'the_estimate_has_been_successfully_rejected',
id: 'the_estimate_has_been_rejected_successfully',
}),
intent: Intent.SUCCESS,
});

View File

@@ -179,8 +179,8 @@ function InvoiceForm({
message: formatMessage(
{
id: isNewMode
? 'the_invocie_has_been_successfully_created'
: 'the_invoice_has_been_successfully_edited',
? 'the_invoice_has_been_created_successfully'
: 'the_invoice_has_been_edited_successfully',
},
{ number: values.invoice_no },
),

View File

@@ -100,7 +100,7 @@ function InvoicesList({
setDeleteInvoice(false);
AppToaster.show({
message: formatMessage({
id: 'the_invoice_has_been_successfully_deleted',
id: 'the_invoice_has_been_deleted_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -128,7 +128,7 @@ function InvoicesList({
setDeliverInvoice(false);
AppToaster.show({
message: formatMessage({
id: 'the_invoice_has_been_successfully_delivered',
id: 'the_invoice_has_been_delivered_successfully',
}),
intent: Intent.SUCCESS,
});

View File

@@ -78,7 +78,7 @@ function PaymentReceiveList({
requestDeletePaymentReceive(deletePaymentReceive.id).then(() => {
AppToaster.show({
message: formatMessage({
id: 'the_payment_receive_has_been_successfully_deleted',
id: 'the_payment_receive_has_been_deleted_successfully',
}),
intent: Intent.SUCCESS,
});

View File

@@ -194,8 +194,8 @@ function ReceiptForm({
message: formatMessage(
{
id: isNewMode
? 'the_receipt_has_been_successfully_created'
: 'the_receipt_has_been_successfully_edited',
? 'the_receipt_has_been_created_successfully'
: 'the_receipt_has_been_edited_successfully',
},
{ number: values.receipt_number },
),

View File

@@ -75,7 +75,7 @@ function ReceiptsList({
requestDeleteReceipt(deleteReceipt.id).then(() => {
AppToaster.show({
message: formatMessage({
id: 'the_receipt_has_been_successfully_deleted',
id: 'the_receipt_has_been_deleted_successfully',
}),
intent: Intent.SUCCESS,
});
@@ -100,7 +100,7 @@ function ReceiptsList({
setCloseReceipt(false);
AppToaster.show({
message: formatMessage({
id: 'the_receipt_has_been_successfully_closed',
id: 'the_receipt_has_been_closed_successfully',
}),
intent: Intent.SUCCESS,
});