diff Simoleon/Helpers/CurrencyRow.swift @ 187:13d5a8deb6c2

add AboutView and FavoritesView
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Thu, 23 Dec 2021 16:12:22 +0100
parents 1ebd1c5dd302
children
line wrap: on
line diff
--- a/Simoleon/Helpers/CurrencyRow.swift	Thu Dec 23 11:30:38 2021 +0100
+++ b/Simoleon/Helpers/CurrencyRow.swift	Thu Dec 23 16:12:22 2021 +0100
@@ -12,8 +12,7 @@
     
     var body: some View {
         HStack {
-            let flagName = getFlagName(currency: currency)
-            Flag(flagName: flagName)
+            Flag(currencyCode: currency.code)
             
             VStack(alignment: .leading) {
                 Text(currency.code)