Просмотр исходного кода

feat(dashboard): Customer list also filters on phoneNumber (#4100)

Sergi Gonzalez 2 дней назад
Родитель
Сommit
6e49ea6ae9

+ 1 - 0
packages/dashboard/src/app/routes/_authenticated/_customers/customers.graphql.ts

@@ -10,6 +10,7 @@ export const customerListDocument = graphql(`
                 firstName
                 lastName
                 emailAddress
+                phoneNumber
                 groups {
                     id
                     name

+ 3 - 0
packages/dashboard/src/app/routes/_authenticated/_customers/customers.tsx

@@ -30,6 +30,9 @@ function CustomerListPage() {
                     emailAddress: {
                         contains: searchTerm,
                     },
+                    phoneNumber: {
+                        contains: searchTerm,
+                    },
                 };
             }}
             transformVariables={variables => {