detail of review
This commit is contained in:
@@ -7,3 +7,10 @@ export const useGetReviews = (params?: Record<string, string | number>) => {
|
||||
queryFn: () => api.getReviews(params),
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetReviewById = (id: string) => {
|
||||
return useQuery({
|
||||
queryKey: ["review", id],
|
||||
queryFn: () => api.getReviewById(id),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user