fix(admin-ui): Add hook to customer group table (#5163)

* fix(admin-ui): Add hook to customer group table

* Create many-trains-sort.md
This commit is contained in:
Oli Juhl
2023-09-20 18:40:51 +02:00
committed by GitHub
parent ef2a12e451
commit 78b50ac0c4
3 changed files with 9 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/admin-ui": patch
"@medusajs/admin": patch
---
fix(admin-ui): Add hook to customer group table
@@ -14,7 +14,7 @@ import Table from "../molecules/table"
import DeletePrompt from "../organisms/delete-prompt"
import EditUser from "../organisms/edit-user-modal"
import { useTranslation } from "react-i18next"
import { getAdminPath, getFullAdminPath } from "../../utils/get-admin-path"
import { getFullAdminPath } from "../../utils/get-admin-path"
type UserListElement = {
entity: any
@@ -66,6 +66,8 @@ function CustomerGroupCustomersList(props: CustomerGroupCustomersListProps) {
// toggle to show/hide "edit customers" modal
const [showCustomersModal, setShowCustomersModal] = useState(false)
const { t } = useTranslation()
const { q, queryObject, paginate, setQuery } =
useQueryFilters(defaultQueryProps)