contract
This commit is contained in:
@@ -133,3 +133,16 @@ export const useDeleteLearning = () => {
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetContentContract = () => {
|
||||
return useQuery({
|
||||
queryKey: ["content-contract"],
|
||||
queryFn: api.getContentContract,
|
||||
});
|
||||
};
|
||||
|
||||
export const useUpdateContract = () => {
|
||||
return useMutation({
|
||||
mutationFn: api.updateContract,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user