delete category
This commit is contained in:
@@ -13,3 +13,9 @@ export const useCreateCategory = () => {
|
||||
mutationFn: api.createCategory,
|
||||
});
|
||||
};
|
||||
|
||||
export const useDeleteCategory = () => {
|
||||
return useMutation({
|
||||
mutationFn: (id: string) => api.deleteCategory(id),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user