clean up ActiveWorkoutSession
This commit is contained in:
@@ -31,17 +31,7 @@ struct ExerciseLibrary: View {
|
||||
List {
|
||||
Section {
|
||||
ForEach(filteredItems) { exercise in
|
||||
NavigationLink {
|
||||
ExerciseEditor(exercise: exercise)
|
||||
} label: {
|
||||
HStack {
|
||||
Text(exercise.name)
|
||||
Spacer()
|
||||
// Text(exercise.metric.rawValue)
|
||||
// .font(.footnote)
|
||||
// .foregroundStyle(.gray)
|
||||
}
|
||||
}
|
||||
NavigationLink(destination: ExerciseDetail(exercise: exercise), label: {Text(exercise.name)})
|
||||
}
|
||||
.onDelete(perform: deleteExercise)
|
||||
if filteredItems.isEmpty {
|
||||
@@ -66,7 +56,7 @@ struct ExerciseLibrary: View {
|
||||
}
|
||||
}
|
||||
.sheet(isPresented: $isAddingExercise) {
|
||||
ExerciseEditor(isPresentedAsSheet: true)
|
||||
AddExercise(isPresentedAsSheet: true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user