pagination + ...

This commit is contained in:
hamid zarghami
2025-04-23 16:18:51 +03:30
parent 72bd413aee
commit 7e2f0af7c9
7 changed files with 131 additions and 14 deletions
+2 -2
View File
@@ -8,9 +8,9 @@ import {
} from "../types/ProductTypes";
export const getServicesByCategory = async (categoryId?: string) => {
let query = ``;
let query = `?limit=50`;
if (categoryId) {
query = `?categoryId=${categoryId}`;
query = `&categoryId=${categoryId}`;
}
const { data } = await axios.get<ServiceResponse>(
`/danak-services/public${query}`