This commit is contained in:
hamid zarghami
2026-01-29 09:48:53 +03:30
parent 7e5184529e
commit 420e011b50
19 changed files with 568 additions and 17 deletions
+2 -1
View File
@@ -186,7 +186,8 @@ export const useCreateLearning = () => {
// Return mock mutation
return {
mutate: (variables: CreateLearningType, options?: any) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
mutate: (options?: any) => {
// Simulate success
setTimeout(() => {
if (options?.onSuccess) {
@@ -1,5 +1,5 @@
import axios from "../../../config/axios";
import {
import type {
CreateCategoryLearningType,
CreateLearningType,
} from "../types/LearningTypes";