delete product
This commit is contained in:
@@ -80,3 +80,9 @@ export const useUpdateProduct = () => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const useDeleteProduct = () => {
|
||||
return useMutation({
|
||||
mutationFn: (id: number) => api.deleteProduct(id),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user