fix: rename dashboard routes.

This commit is contained in:
elforjani3
2021-01-17 20:47:26 +02:00
parent c843a28d30
commit c7b81b1998
17 changed files with 69 additions and 77 deletions

View File

@@ -13,7 +13,7 @@ import { compose } from 'utils';
import 'style/pages/Customers/PageForm.scss';
function Customer({
function CustomerFormPage({
// // #withDashboardActions
// changePageTitle,
@@ -69,4 +69,4 @@ function Customer({
);
}
export default compose(withCustomersActions, withCurrenciesActions)(Customer);
export default compose(withCustomersActions, withCurrenciesActions)(CustomerFormPage);

View File

@@ -71,8 +71,8 @@ function CustomersList({
);
const handleEditCustomer = useCallback(
(cusomter) => {
history.push(`/customers/${cusomter.id}/edit`);
(customer) => {
history.push(`/customers/${customer.id}/edit`);
},
[history],
);