feat: wip
This commit is contained in:
@@ -5,7 +5,6 @@ import Styleguide
|
||||
import SwiftUI
|
||||
import TCAExtras
|
||||
|
||||
#warning("Fix shared settings.")
|
||||
@Reducer
|
||||
public struct PressureEstimationsFeature {
|
||||
|
||||
@@ -19,7 +18,7 @@ public struct PressureEstimationsFeature {
|
||||
@ObservableState
|
||||
public struct State: Equatable {
|
||||
@Presents public var destination: Destination.State?
|
||||
@Shared(.sharedPressureEstimationSettings) var sharedSettings = SharedPressureEstimationState()
|
||||
@Shared(.pressureEstimationState) var sharedSettings = SharedPressureEstimationState()
|
||||
public var equipmentSettings: EquipmentSettingsForm.State
|
||||
|
||||
public init(
|
||||
@@ -108,11 +107,9 @@ public struct PressureEstimationsView: View {
|
||||
}
|
||||
|
||||
public var body: some View {
|
||||
// ScrollView {
|
||||
EquipmentSettingsFormView(
|
||||
store: store.scope(state: \.equipmentSettings, action: \.equipmentSettings)
|
||||
)
|
||||
// }
|
||||
EquipmentSettingsFormView(
|
||||
store: store.scope(state: \.equipmentSettings, action: \.equipmentSettings)
|
||||
)
|
||||
.navigationTitle("Equipment Settings")
|
||||
.toolbar {
|
||||
NextButton { send(.nextButtonTapped) }
|
||||
@@ -125,10 +122,8 @@ public struct PressureEstimationsView: View {
|
||||
action: \.destination.equipmentMeasurements
|
||||
)
|
||||
) { measurementStore in
|
||||
// ScrollView {
|
||||
EquipmentMeasurementFormView(store: measurementStore)
|
||||
.navigationTitle("Existing Measurements")
|
||||
// }
|
||||
EquipmentMeasurementFormView(store: measurementStore)
|
||||
.navigationTitle("Existing Measurements")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user