update print

This commit is contained in:
hamid zarghami
2026-02-22 14:06:58 +03:30
parent f2fbd8552a
commit 5208e9e51a
4 changed files with 32 additions and 2 deletions
+8
View File
@@ -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,
});
};