pagination

This commit is contained in:
hamid zarghami
2025-05-12 11:43:48 +03:30
parent 052280a009
commit cad29d587c
16 changed files with 90 additions and 33 deletions
@@ -1,8 +1,8 @@
import axios from "../../../config/axios";
import { CreateCustomerType } from "../types/CustomerTypes";
export const getCustomers = async () => {
const { data } = await axios.get(`/users/customers`);
export const getCustomers = async (page: number) => {
const { data } = await axios.get(`/users/customers?page=${page}`);
return data;
};