feat: Adding improvements to pressure estimations feature.
This commit is contained in:
@@ -355,45 +355,6 @@ fileprivate enum RatingsField: String, Hashable, CaseIterable, Identifiable {
|
||||
var prompt: String { "\(label) Pressure" }
|
||||
}
|
||||
|
||||
//fileprivate extension Store where State == EquipmentSettingsForm.State {
|
||||
//
|
||||
//
|
||||
// func label(for ratingsField: RatingsField) -> String {
|
||||
// self.label(for: ratingsField.field)
|
||||
// }
|
||||
//
|
||||
// func prompt(for ratingsField: RatingsField) -> String {
|
||||
// self.prompt(for: ratingsField.field)
|
||||
// }
|
||||
//
|
||||
// func label(for field: EquipmentSettingsForm.State.Field) -> String {
|
||||
// switch field {
|
||||
// case .heatingCapacity:
|
||||
// return "Heating"
|
||||
// case .minimumStaticPressure:
|
||||
// return "Minimum"
|
||||
// case .maximumStaticPressure:
|
||||
// return "Maximum"
|
||||
// case .ratedStaticPressure:
|
||||
// return "Rated"
|
||||
// case .manufacturersIncludedFilterPressureDrop:
|
||||
// return "Filter Drop"
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
// func prompt(for field: EquipmentSettingsForm.State.Field) -> String {
|
||||
// switch field {
|
||||
// case .heatingCapacity:
|
||||
// return "Heating Capacity"
|
||||
// case .minimumStaticPressure, .maximumStaticPressure, .ratedStaticPressure:
|
||||
// return "\(label(for: field)) Pressure"
|
||||
// case .manufacturersIncludedFilterPressureDrop:
|
||||
// return label(for: field)
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
#Preview {
|
||||
NavigationStack {
|
||||
EquipmentSettingsFormView(
|
||||
|
||||
Reference in New Issue
Block a user