diff --git a/components/EditingRoutineExerciseList.js b/components/EditingRoutineExerciseList.js index 3c6b6cd..c729ebd 100644 --- a/components/EditingRoutineExerciseList.js +++ b/components/EditingRoutineExerciseList.js @@ -165,7 +165,20 @@ export default function EditingRoutineExerciseList({ - + { + if (item.key.includes("lift")) { + navigation.navigate("Edit Exercise", { + exercise: item.exercise, + }); + } else { + navigation.navigate("Edit Cardio Exercise", { + exercise: item.exercise, + }); + } + }} + > Edit - + { + if (item.key.includes("lift")) { + deleteExercise(item.exercise.exerciseId, item.day); + } else { + deleteCardioExercise(item.exercise.exerciseName, item.day); + } + }} + >