@@ -12,6 +12,7 @@ import qualified App.Widgets.Qr as Qr
12
12
import qualified App.Widgets.SwapAmounts as SwapAmounts
13
13
import Functora.Miso.Prelude
14
14
import Functora.Money hiding (Text )
15
+ import qualified Functora.Prelude as Prelude
15
16
import qualified Material.Button as Button
16
17
import qualified Material.LayoutGrid as LayoutGrid
17
18
import qualified Material.Snackbar as Snackbar
@@ -180,6 +181,7 @@ ratesWidget st =
180
181
. # currencyOutput
181
182
. # currencyInfoCode
182
183
. # unCurrencyCode
184
+ . to toMisoString
183
185
bottom = st ^. # modelState . # stDoc . # stDocBottomMoney
184
186
bottomAmt = bottom ^. # moneyAmount . # fieldOutput
185
187
bottomCur =
@@ -188,6 +190,7 @@ ratesWidget st =
188
190
. # currencyOutput
189
191
. # currencyInfoCode
190
192
. # unCurrencyCode
193
+ . to toMisoString
191
194
bottomPerTop =
192
195
if topAmt == 0
193
196
then 0
@@ -236,12 +239,49 @@ tosWidget =
236
239
[ (" text-align" , " center" )
237
240
]
238
241
]
239
- [ Miso. text " \169 2024 Functora. All rights reserved. " ,
242
+ [ Miso. text " \169 2024 " ,
243
+ browserLink " https://functora.github.io/" " Functora" ,
244
+ Miso. text " . All rights reserved. " ,
240
245
Miso. text " By continuing to use this software, you agree to the " ,
241
- a_ [href_ " license.html" ] [Miso. text " Terms of Service" ],
246
+ a_
247
+ [ href_ " license.html"
248
+ ]
249
+ [ Miso. text " Terms of Service"
250
+ ],
242
251
Miso. text " and " ,
243
- a_ [href_ " privacy.html" ] [Miso. text " Privacy Policy" ],
244
- Miso. text
245
- " . This software is 100% organic and AI-free. It is built and tested exclusively by humans. " ,
246
- Miso. text $ " Version " <> vsn <> " ."
252
+ a_
253
+ [ href_ " privacy.html"
254
+ ]
255
+ [ Miso. text " Privacy Policy"
256
+ ],
257
+ Miso. text " . To install the " ,
258
+ browserLink
259
+ " https://play.google.com/apps/testing/com.functora.currency_converter"
260
+ " Android app" ,
261
+ Miso. text " , either join the " ,
262
+ browserLink
263
+ " https://groups.google.com/g/currency-converter"
264
+ " testing group" ,
265
+ Miso. text " or download the " ,
266
+ browserLink
267
+ ( " https://github.com/functora/functora.github.io/releases/download/currency-converter-v"
268
+ <> fromMisoString vsn
269
+ <> " /currency-converter-v"
270
+ <> fromMisoString vsn
271
+ <> " .apk"
272
+ )
273
+ " APK file" ,
274
+ Miso. text $ " . Version " <> vsn <> " ."
275
+ ]
276
+
277
+ browserLink :: Prelude. Text -> MisoString -> View Action
278
+ browserLink uri txt =
279
+ a_
280
+ [ href_ " #!" ,
281
+ onClick
282
+ . Misc. openBrowserPageAction
283
+ . either impureThrow id
284
+ $ URI. mkURI uri
285
+ ]
286
+ [ Miso. text txt
247
287
]
0 commit comments