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,
});