{activities.map(activity =>
- //TODO modificar el id
-
-
+
+
kind activity
{activity.title}
diff --git a/staff/agustin-birman/app/src/views/components/ListExercises/index.jsx b/staff/agustin-birman/app/src/views/components/ListExercises/index.jsx
index 9fbd14ed7..84872d147 100644
--- a/staff/agustin-birman/app/src/views/components/ListExercises/index.jsx
+++ b/staff/agustin-birman/app/src/views/components/ListExercises/index.jsx
@@ -36,28 +36,12 @@ function ListExercises() {
}
}
- const handleExerciseDeleted = (exerciseId) => {
- try {
- logic.deleteExercise(exerciseId)
- .then(() => { loadExercises() })
- .catch(error => {
- console.error(error)
-
- alert(error.message)
- })
- } catch (error) {
- console.error(error)
-
- alert(error.message)
- }
- }
-
return
Exercises List
{exercises.map(exercise =>
//TODO modificar el id
-
+
{exercise.index + 1}
{exercise.sentence}
diff --git a/staff/agustin-birman/app/src/views/components/ListStudents/index.jsx b/staff/agustin-birman/app/src/views/components/ListStudents/index.jsx
index 77a14ced3..f2139bdee 100644
--- a/staff/agustin-birman/app/src/views/components/ListStudents/index.jsx
+++ b/staff/agustin-birman/app/src/views/components/ListStudents/index.jsx
@@ -49,17 +49,16 @@ function ListStudents() {
}
- console.log(students)
return
Students List
{students.map(student =>
//TODO modificar el id
-
+
{student.name}
{student.surname}
-
+
diff --git a/staff/agustin-birman/app/src/views/components/MenuItems/index.css b/staff/agustin-birman/app/src/views/components/MenuItems/index.css
index e69de29bb..5e8294737 100644
--- a/staff/agustin-birman/app/src/views/components/MenuItems/index.css
+++ b/staff/agustin-birman/app/src/views/components/MenuItems/index.css
@@ -0,0 +1,8 @@
+.MenuItem{
+ width: 90%;
+ height: 15%;
+ padding: 10px;
+ border: 1px solid black;
+ border-radius: 20px;
+ margin-bottom: 1rem;
+}
\ No newline at end of file
diff --git a/staff/agustin-birman/app/src/views/components/MenuItems/index.jsx b/staff/agustin-birman/app/src/views/components/MenuItems/index.jsx
index dd0f93b35..ec677910d 100644
--- a/staff/agustin-birman/app/src/views/components/MenuItems/index.jsx
+++ b/staff/agustin-birman/app/src/views/components/MenuItems/index.jsx
@@ -1,16 +1,17 @@
import Button from '../../../components/core/Button'
import View from '../../../components/library/View'
import { Link } from 'react-router-dom'
+import './index.css'
import extractPayloadFromJWT from '../../../utils/extractPayloadFromJWT'
function MenuItem() {
const { sub: userId } = extractPayloadFromJWT(localStorage.token)
return
-
-
-
-
+
+
+
+
diff --git a/staff/agustin-birman/app/src/views/components/ShowExerciseResults/index.jsx b/staff/agustin-birman/app/src/views/components/ShowExerciseResults/index.jsx
index 384307701..f64c53235 100644
--- a/staff/agustin-birman/app/src/views/components/ShowExerciseResults/index.jsx
+++ b/staff/agustin-birman/app/src/views/components/ShowExerciseResults/index.jsx
@@ -23,7 +23,7 @@ function ShowExerciseResults() {
.then(data => {
const { exercises } = data
const promises = exercises.map(exercise =>
- logic.getAnswers(exercise._id)
+ logic.getAnswers(exercise.id)
.then(answers => ({
...exercise,
answers
@@ -57,7 +57,7 @@ function ShowExerciseResults() {
Results
{exercisesWithAnswers.map(exercise => (
-
+
{exercise.index + 1}
{exercise.sentence}