edit order
This commit is contained in:
@@ -2,8 +2,8 @@ import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import * as api from "../service/OrderService";
|
||||
import type {
|
||||
AddTicketType,
|
||||
CreateFinalOrderType,
|
||||
OrderPrintFormType,
|
||||
UpdateOrderType,
|
||||
} from "../types/Types";
|
||||
|
||||
export const useGetOrders = (params?: api.GetOrdersParams) => {
|
||||
@@ -74,7 +74,7 @@ export const useUpdateOrder = () => {
|
||||
params,
|
||||
}: {
|
||||
orderId: string;
|
||||
params: CreateFinalOrderType;
|
||||
params: UpdateOrderType;
|
||||
}) => api.updateOrder(orderId, params),
|
||||
});
|
||||
};
|
||||
@@ -86,7 +86,7 @@ export const useGetProducts = () => {
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetAttributes = (id?: number) => {
|
||||
export const useGetAttributes = (id?: string) => {
|
||||
return useQuery({
|
||||
queryKey: ["attributes", id],
|
||||
queryFn: () => api.getAttributes(id),
|
||||
|
||||
Reference in New Issue
Block a user