Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix view all orders button
Krzysztof Bialoglowicze348f610f67d
diff --git a/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx b/saleor/static/dashboard-next/customers/views/CustomerDetails.tsxindex 16bb4c3854..1f58af257f 100644--- a/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx+++ b/saleor/static/dashboard-next/customers/views/CustomerDetails.tsx@@ -7,7 +7,7 @@ import useNavigator from "../../hooks/useNavigator";import useNotifier from "../../hooks/useNotifier";import i18n from "../../i18n";import { getMutationState, maybe } from "../../misc";-import { orderUrl } from "../../orders/urls";+import { orderUrl, orderListUrl } from "../../orders/urls";import CustomerDetailsPage from "../components/CustomerDetailsPage/CustomerDetailsPage";import {TypedRemoveCustomerMutation,@@ -120,7 +120,13 @@ export const CustomerDetailsView: React.StatelessComponent<}))}- onViewAllOrdersClick={() => undefined} // TODO: add filters to order #3172+ onViewAllOrdersClick={() =>+ navigate(+ orderListUrl({+ email: maybe(() => customerDetails.data.user.email)+ })+ )+ }/><ActionDialogconfirmButtonState={removeTransitionState}