change name hook
This commit is contained in:
@@ -26,3 +26,7 @@ export const getOrderById = async (
|
||||
);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const confirmOrder = async (orderId: string): Promise<void> => {
|
||||
await axios.patch(`/admin/orders/${orderId}/confirm`);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user