update print
This commit is contained in:
@@ -113,3 +113,11 @@ export const useSubmitOrderPrint = () => {
|
||||
}) => api.submitOrderPrint(orderId, params),
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetOrderPrint = (orderId: string) => {
|
||||
return useQuery({
|
||||
queryKey: ["order-print", orderId],
|
||||
queryFn: () => api.getOrderPrint(orderId),
|
||||
enabled: !!orderId,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user