single service + 404 page and 500 page
This commit is contained in:
@@ -33,3 +33,14 @@ export const categoriesQueryOptions = {
|
||||
queryKey: ["service-categories"],
|
||||
queryFn: () => api.getCategoriesPublic(),
|
||||
};
|
||||
|
||||
export const useGetDetailService = (serviceId: string) =>
|
||||
useQuery({
|
||||
queryKey: ["service-detail", serviceId],
|
||||
queryFn: () => api.getDetailService(serviceId),
|
||||
});
|
||||
|
||||
export const detailServiceQueryOptions = (serviceId: string) => ({
|
||||
queryKey: ["service-detail", serviceId],
|
||||
queryFn: () => api.getDetailService(serviceId),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user