Procházet zdrojové kódy

update MainChartView function call

Arif Kobel před 2 roky
rodič
revize
7ef0745e0a
1 změnil soubory, kde provedl 28 přidání a 31 odebrání
  1. 28 31
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

+ 28 - 31
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -471,42 +471,39 @@ extension Home {
                         .frame(minWidth: 0, maxWidth: .infinity, minHeight: 0, maxHeight: .infinity)
                 }
 
-//                MainChartView(
-//                    glucose: $state.glucose,
-//                    isManual: $state.isManual,
-//                    suggestion: $state.suggestion,
-//                    tempBasals: $state.tempBasals,
-//                    boluses: $state.boluses,
-//                    suspensions: $state.suspensions,
-//                    announcement: $state.announcement,
-//                    hours: .constant(state.filteredHours),
-//                    maxBasal: $state.maxBasal,
-//                    autotunedBasalProfile: $state.autotunedBasalProfile,
-//                    basalProfile: $state.basalProfile,
-//                    tempTargets: $state.tempTargets,
-//                    carbs: $state.carbs,
-//                    timerDate: $state.timerDate,
-//                    units: $state.units,
-//                    smooth: $state.smooth,
-//                    highGlucose: $state.highGlucose,
-//                    lowGlucose: $state.lowGlucose,
-//                    screenHours: $state.hours,
-//                    displayXgridLines: $state.displayXgridLines,
-//                    displayYgridLines: $state.displayYgridLines,
-//                    thresholdLines: $state.thresholdLines
-//                )
-
-//                MARK: SWIFT CHARTS
-
                 MainChartView2(
-                    tempBasals: $state.tempBasals,
                     glucose: $state.glucose,
-                    screenHours: $state.hours,
+                    suggestion: $state.suggestion,
+                    tempBasals: $state.tempBasals,
+                    boluses: $state.boluses,
+                    suspensions: $state.suspensions,
+                    announcement: $state.announcement,
+                    hours: .constant(state.filteredHours),
+                    maxBasal: $state.maxBasal,
+                    autotunedBasalProfile: $state.autotunedBasalProfile,
+                    basalProfile: $state.basalProfile,
+                    tempTargets: $state.tempTargets,
+                    carbs: $state.carbs,
+                    smooth: $state.smooth,
                     highGlucose: $state.highGlucose,
                     lowGlucose: $state.lowGlucose,
-                    carbs: $state.carbs,
-                    basalProfile: $state.basalProfile
+                    screenHours: $state.hours,
+                    displayXgridLines: $state.displayXgridLines,
+                    displayYgridLines: $state.displayYgridLines,
+                    thresholdLines: $state.thresholdLines
                 )
+
+//                MARK: SWIFT CHARTS
+
+//                MainChartView2(
+//                    tempBasals: $state.tempBasals,
+//                    glucose: $state.glucose,
+//                    screenHours: $state.hours,
+//                    highGlucose: $state.highGlucose,
+//                    lowGlucose: $state.lowGlucose,
+//                    carbs: $state.carbs,
+//                    basalProfile: $state.basalProfile
+//                )
             }
             .padding(.bottom)
             .modal(for: .dataTable, from: self)