From 21ae3f4352ef6cc6851f3f363b2ac9512afb1831 Mon Sep 17 00:00:00 2001 From: Reckless_Satoshi <90936742+Reckless-Satoshi@users.noreply.github.com> Date: Mon, 30 May 2022 10:24:51 +0000 Subject: [PATCH] Add currencies byn egp lkr mad (#154) * Add fiat currencies: BYN, EGP, LKR, and MAD, all of which Yadio supports. * Add new currencies to currencies.json Co-authored-by: Stephen Gornick --- frontend/src/components/FlagWithProps/FlagWithProps.tsx | 4 ++++ frontend/static/assets/currencies.json | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/FlagWithProps/FlagWithProps.tsx b/frontend/src/components/FlagWithProps/FlagWithProps.tsx index 4043b5f7..899fa3a4 100644 --- a/frontend/src/components/FlagWithProps/FlagWithProps.tsx +++ b/frontend/src/components/FlagWithProps/FlagWithProps.tsx @@ -18,10 +18,12 @@ const FlagWithProps = ({ code }: Props): JSX.Element => { if(code === 'AUD') flag = ; if(code === 'ARS') flag = ; if(code === 'BRL') flag = ; + if(code === 'BYN') flag = ; if(code === 'CAD') flag = ; if(code === 'CHF') flag = ; if(code === 'CLP') flag = ; if(code === 'CNY') flag = ; + if(code === 'EGP') flag = ; if(code === 'EUR') flag = ; if(code === 'HRK') flag = ; if(code === 'CZK') flag = ; @@ -33,6 +35,8 @@ const FlagWithProps = ({ code }: Props): JSX.Element => { if(code === 'ISK') flag = ; if(code === 'JPY') flag = ; if(code === 'KRW') flag = ; + if(code === 'LKR') flag = ; + if(code === 'MAD') flag = ; if(code === 'MXN') flag = ; if(code === 'NOK') flag = ; if(code === 'NZD') flag = ; diff --git a/frontend/static/assets/currencies.json b/frontend/static/assets/currencies.json index 1adcbf99..01356b1f 100644 --- a/frontend/static/assets/currencies.json +++ b/frontend/static/assets/currencies.json @@ -14,7 +14,7 @@ "13":"SGD", "14":"NOK", "15":"MXN", - "16":"KRW", + "16":"BYN", "17":"RUB", "18":"ZAR", "19":"TRY", @@ -63,6 +63,9 @@ "62":"TZS", "63":"XAF", "64":"UAH", + "65":"EGP", + "66":"LKR", + "67":"MAD", "300":"XAU", "1000":"BTC" }