Merge branch 'feature/react-query' of https://github.com/abouolia/Ratteb into feature/react-query

This commit is contained in:
a.bouhuolia
2021-02-15 12:04:33 +02:00
2 changed files with 3 additions and 5 deletions

View File

@@ -1,8 +1,5 @@
import React from 'react'; import React from 'react';
import { import { FormattedMessage as T, useIntl } from 'react-intl';
FormattedMessage as T,
useIntl,
} from 'react-intl';
import { Intent, Alert } from '@blueprintjs/core'; import { Intent, Alert } from '@blueprintjs/core';
import { AppToaster } from 'components'; import { AppToaster } from 'components';
@@ -42,6 +39,7 @@ function BillDeleteAlert({
}), }),
intent: Intent.SUCCESS, intent: Intent.SUCCESS,
}); });
closeAlert(name);
}); });
}; };

View File

@@ -116,7 +116,7 @@ function CustomerForm({
}; };
if (customer && customer.id) { if (customer && customer.id) {
editCustomerMutate(customer.id, formValues) editCustomerMutate([customer.id, formValues])
.then(onSuccess) .then(onSuccess)
.catch(onError); .catch(onError);
} else { } else {