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 <sgornick@gmail.com>
This commit is contained in:
Reckless_Satoshi 2022-05-30 10:24:51 +00:00 committed by GitHub
parent 44f8712e18
commit 21ae3f4352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -18,10 +18,12 @@ const FlagWithProps = ({ code }: Props): JSX.Element => {
if(code === 'AUD') flag = <Flags.AU {...defaultProps}/>;
if(code === 'ARS') flag = <Flags.AR {...defaultProps}/>;
if(code === 'BRL') flag = <Flags.BR {...defaultProps}/>;
if(code === 'BYN') flag = <Flags.BY {...defaultProps}/>;
if(code === 'CAD') flag = <Flags.CA {...defaultProps}/>;
if(code === 'CHF') flag = <Flags.CH {...defaultProps}/>;
if(code === 'CLP') flag = <Flags.CL {...defaultProps}/>;
if(code === 'CNY') flag = <Flags.CN {...defaultProps}/>;
if(code === 'EGP') flag = <Flags.EG {...defaultProps}/>;
if(code === 'EUR') flag = <Flags.EU {...defaultProps}/>;
if(code === 'HRK') flag = <Flags.HR {...defaultProps}/>;
if(code === 'CZK') flag = <Flags.CZ {...defaultProps}/>;
@ -33,6 +35,8 @@ const FlagWithProps = ({ code }: Props): JSX.Element => {
if(code === 'ISK') flag = <Flags.IS {...defaultProps}/>;
if(code === 'JPY') flag = <Flags.JP {...defaultProps}/>;
if(code === 'KRW') flag = <Flags.KR {...defaultProps}/>;
if(code === 'LKR') flag = <Flags.LK {...defaultProps}/>;
if(code === 'MAD') flag = <Flags.MA {...defaultProps}/>;
if(code === 'MXN') flag = <Flags.MX {...defaultProps}/>;
if(code === 'NOK') flag = <Flags.NO {...defaultProps}/>;
if(code === 'NZD') flag = <Flags.NZ {...defaultProps}/>;

View File

@ -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"
}