@@ -139,14 +139,10 @@ menu st =
139
139
}
140
140
Currency. Args
141
141
{ Currency. argsModel = st,
142
- Currency. argsOptic =
143
- # modelState . # stAssetCurrency,
144
- Currency. argsAction =
145
- PushUpdate . Instant ,
146
- Currency. argsEmitter =
147
- pushActionQueue st . Instant ,
148
- Currency. argsCurrencies =
149
- # modelCurrencies
142
+ Currency. argsOptic = # modelState . # stAssetCurrency,
143
+ Currency. argsAction = PushUpdate . Instant ,
144
+ Currency. argsEmitter = pushActionQueue st . Instant ,
145
+ Currency. argsCurrencies = # modelCurrencies
150
146
}
151
147
<> Currency. selectCurrency
152
148
Currency. defOpts
@@ -155,40 +151,28 @@ menu st =
155
151
}
156
152
Currency. Args
157
153
{ Currency. argsModel = st,
158
- Currency. argsOptic =
159
- # modelState . # stMerchantCurrency,
160
- Currency. argsAction =
161
- PushUpdate . Instant ,
162
- Currency. argsEmitter =
163
- pushActionQueue st . Instant ,
164
- Currency. argsCurrencies =
165
- # modelCurrencies
154
+ Currency. argsOptic = # modelState . # stMerchantCurrency,
155
+ Currency. argsAction = PushUpdate . Instant ,
156
+ Currency. argsEmitter = pushActionQueue st . Instant ,
157
+ Currency. argsCurrencies = # modelCurrencies
166
158
}
167
159
<> [ Select. select
168
- ( Select. defOpts
169
- & # optsLabel
170
- .~ Just " Exchange rate"
160
+ ( Select. defOpts & # optsLabel .~ Just " Exchange rate"
171
161
)
172
162
Select. Args
173
- { Select. argsModel =
174
- st,
175
- Select. argsOptic =
176
- # modelState . # stOnlineOrOffline,
177
- Select. argsAction =
178
- PushUpdate . Instant ,
163
+ { Select. argsModel = st,
164
+ Select. argsOptic = # modelState . # stOnlineOrOffline,
165
+ Select. argsAction = PushUpdate . Instant ,
179
166
Select. argsOptions =
180
167
constTraversal $ enumerate @ OnlineOrOffline
181
168
}
182
169
]
183
170
<> Field. ratioField
184
171
Field. Args
185
172
{ Field. argsModel = st,
186
- Field. argsOptic =
187
- # modelState . # stExchangeRate,
188
- Field. argsAction =
189
- PushUpdate . Instant ,
190
- Field. argsEmitter =
191
- pushActionQueue st . Instant
173
+ Field. argsOptic = # modelState . # stExchangeRate,
174
+ Field. argsAction = PushUpdate . Instant ,
175
+ Field. argsEmitter = pushActionQueue st . Instant
192
176
}
193
177
( let disabled =
194
178
st
0 commit comments