slider product
This commit is contained in:
@@ -29,11 +29,22 @@ export const useGetCategories = () =>
|
||||
queryFn: () => api.getCategoriesPublic(),
|
||||
});
|
||||
|
||||
export const useGetSliderProducts = () =>
|
||||
useQuery({
|
||||
queryKey: ["slider-products"],
|
||||
queryFn: () => api.getSliderProducts(),
|
||||
});
|
||||
|
||||
export const categoriesQueryOptions = {
|
||||
queryKey: ["service-categories"],
|
||||
queryFn: () => api.getCategoriesPublic(),
|
||||
};
|
||||
|
||||
export const sliderProductsQueryOptions = {
|
||||
queryKey: ["slider-products"],
|
||||
queryFn: () => api.getSliderProducts(),
|
||||
};
|
||||
|
||||
export const useGetDetailService = (serviceId: string) =>
|
||||
useQuery({
|
||||
queryKey: ["service-detail", serviceId],
|
||||
|
||||
Reference in New Issue
Block a user