single service
This commit is contained in:
@@ -22,3 +22,11 @@ export const useGetServicesByCategory = (categoryId: string) => {
|
||||
enabled: !!categoryId,
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetDetailService = (serviceId: string) => {
|
||||
return useQuery({
|
||||
queryKey: ["service", serviceId],
|
||||
queryFn: () => api.getDetailService(serviceId),
|
||||
enabled: !!serviceId,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user