Sfoglia il codice sorgente

Change order of fat and protein input to resemble NS and LF

Deniz Cengiz 1 anno fa
parent
commit
4192a2ff28

+ 4 - 4
FreeAPS/Sources/Modules/DataTable/View/CarbEntryEditorView.swift

@@ -134,9 +134,9 @@ struct CarbEntryEditorView: View {
 
                     if state.settingsManager.settings.useFPUconversion {
                         HStack {
-                            Text("Fat")
+                            Text("Protein")
                             TextFieldWithToolBar(
-                                text: $editedFat,
+                                text: $editedProtein,
                                 placeholder: "0",
                                 keyboardType: .numberPad,
                                 numberFormatter: Formatter.decimalFormatterWithOneFractionDigit
@@ -145,9 +145,9 @@ struct CarbEntryEditorView: View {
                         }
 
                         HStack {
-                            Text("Protein")
+                            Text("Fat")
                             TextFieldWithToolBar(
-                                text: $editedProtein,
+                                text: $editedFat,
                                 placeholder: "0",
                                 keyboardType: .numberPad,
                                 numberFormatter: Formatter.decimalFormatterWithOneFractionDigit