|
|
@@ -42,15 +42,6 @@ extension Bolus {
|
|
|
}
|
|
|
|
|
|
Section {
|
|
|
- if !fetch {
|
|
|
- Button {
|
|
|
- carbssView()
|
|
|
- }
|
|
|
- label: { Text("Add Meal") }.frame(maxWidth: .infinity, alignment: .center)
|
|
|
- }
|
|
|
- } header: { Text(!fetch ? "Meal Summary" : "") }
|
|
|
-
|
|
|
- Section {
|
|
|
if state.waitForSuggestion {
|
|
|
HStack {
|
|
|
Text("Wait please").foregroundColor(.secondary)
|
|
|
@@ -93,8 +84,7 @@ extension Bolus {
|
|
|
Text(!(state.amount > state.maxBolus) ? "U" : "😵").foregroundColor(.secondary)
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- header: { Text("Bolus Summary") }
|
|
|
+ } header: { Text("Bolus") }
|
|
|
|
|
|
if !state.waitForSuggestion {
|
|
|
if state.amount > 0 {
|
|
|
@@ -153,11 +143,9 @@ extension Bolus {
|
|
|
.navigationBarTitleDisplayMode(.inline)
|
|
|
.navigationBarItems(
|
|
|
leading: Button {
|
|
|
- if fetch {
|
|
|
- carbssView()
|
|
|
- }
|
|
|
+ carbssView()
|
|
|
}
|
|
|
- label: { Text(fetch ? "Back" : "") },
|
|
|
+ label: { Text(fetch ? "Back" : "Meal") },
|
|
|
|
|
|
trailing: Button { state.hideModal() }
|
|
|
label: { Text("Close") }
|