From 7fad52cf6809b971cca7c98cfc1ecc936137189f Mon Sep 17 00:00:00 2001 From: Gael Leblan Date: Tue, 17 Dec 2024 10:28:18 +0100 Subject: [PATCH] [frontend] Switching Lesson Learned to simulation instead of exercise --- .../simulations/simulation/lessons/ExerciseLessons.tsx | 2 +- openbas-front/src/public/Index.tsx | 2 +- .../src/public/components/lessons/ExerciseViewLessons.tsx | 2 +- openbas-front/src/root.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openbas-front/src/admin/components/simulations/simulation/lessons/ExerciseLessons.tsx b/openbas-front/src/admin/components/simulations/simulation/lessons/ExerciseLessons.tsx index 5571ee286a..6e74641de9 100644 --- a/openbas-front/src/admin/components/simulations/simulation/lessons/ExerciseLessons.tsx +++ b/openbas-front/src/admin/components/simulations/simulation/lessons/ExerciseLessons.tsx @@ -55,7 +55,7 @@ const ExerciseLessons = () => { const processToGenericSource = (exercise: ExerciseStore) => { return { id: exercise.exercise_id, - type: 'exercise', + type: 'simulation', name: exercise.exercise_name, score: exercise.exercise_score, lessons_answers_number: exercise.exercise_lessons_answers_number, diff --git a/openbas-front/src/public/Index.tsx b/openbas-front/src/public/Index.tsx index d0ec08ea1f..987da8e8e1 100644 --- a/openbas-front/src/public/Index.tsx +++ b/openbas-front/src/public/Index.tsx @@ -42,7 +42,7 @@ const Index = () => { - + } /> diff --git a/openbas-front/src/public/components/lessons/ExerciseViewLessons.tsx b/openbas-front/src/public/components/lessons/ExerciseViewLessons.tsx index 09fd51651e..aa30d6055d 100644 --- a/openbas-front/src/public/components/lessons/ExerciseViewLessons.tsx +++ b/openbas-front/src/public/components/lessons/ExerciseViewLessons.tsx @@ -35,7 +35,7 @@ const ExerciseViewLessons = () => { if (!exercise) return undefined; return { id: exerciseId, - type: 'exercise', + type: 'simulation', name: exercise.exercise_name, subtitle: exercise.exercise_subtitle, userId, diff --git a/openbas-front/src/root.tsx b/openbas-front/src/root.tsx index 805643af29..1b9c88759e 100644 --- a/openbas-front/src/root.tsx +++ b/openbas-front/src/root.tsx @@ -72,7 +72,7 @@ const Root = () => { - + {/* Not found */}