detail of order
This commit is contained in:
@@ -8,3 +8,11 @@ export const useGetOrders = (params?: GetOrdersParams) => {
|
||||
queryFn: () => api.getOrders(params),
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetOrderById = (orderId: string) => {
|
||||
return useQuery({
|
||||
queryKey: ["order", orderId],
|
||||
queryFn: () => api.getOrderById(orderId),
|
||||
enabled: !!orderId,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user