From 1139da980d1ab3c388df0f7d5c1d6b04f756e932 Mon Sep 17 00:00:00 2001 From: Andrew Scott Date: Sat, 4 Jun 2022 03:18:19 -0400 Subject: [PATCH] Minor updates --- exercises-ui/src/components/Exercise.js | 2 +- exercises-ui/src/components/ExerciseList.js | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/exercises-ui/src/components/Exercise.js b/exercises-ui/src/components/Exercise.js index 2537201..b215a44 100644 --- a/exercises-ui/src/components/Exercise.js +++ b/exercises-ui/src/components/Exercise.js @@ -10,7 +10,7 @@ function Exercise({ exercise, onDelete, onEdit }) { {exercise.unit} {exercise.date} - onEdit(exercise._id)} /> + onEdit(exercise)} /> onDelete(exercise._id)} /> diff --git a/exercises-ui/src/components/ExerciseList.js b/exercises-ui/src/components/ExerciseList.js index 1f9359d..cd01cc9 100644 --- a/exercises-ui/src/components/ExerciseList.js +++ b/exercises-ui/src/components/ExerciseList.js @@ -17,7 +17,12 @@ function ExerciseList({ exercises, onDelete, onEdit }) { {exercises.map((exercise, i) => ( - + ))}