modify users list page

This commit is contained in:
2026-06-18 20:16:28 +03:30
parent 1137780cf0
commit 3ba1290e56
5 changed files with 128 additions and 98 deletions
+8 -3
View File
@@ -1,7 +1,12 @@
import axios from "@/config/axios";
import type { GetCustomersResponse } from "@/pages/customers/types/Types";
import type {
GetCustomersResponse,
GetUsersParams,
} from "@/pages/customers/types/Types";
export const getUsers = async () => {
const { data } = await axios.get<GetCustomersResponse>(`/admin/users`);
export const getUsers = async (params?: GetUsersParams) => {
const { data } = await axios.get<GetCustomersResponse>(`/admin/users`, {
params,
});
return data;
};