mirror of
https://github.com/Lissy93/dashy.git
synced 2024-11-23 12:43:52 +03:00
🔀 Merge pull request #1124 from Lissy93/FIX/currency-widget-flags
[FIX] Updates the endpoint for currency flags Fixes #1096
This commit is contained in:
commit
0d8d7fc28c
@ -64,8 +64,8 @@ export const getCountryFlag = (countryCode, dimens) => {
|
|||||||
|
|
||||||
/* Given a currency code, return path to corresponding countries flag icon */
|
/* Given a currency code, return path to corresponding countries flag icon */
|
||||||
export const getCurrencyFlag = (currency) => {
|
export const getCurrencyFlag = (currency) => {
|
||||||
const cdn = 'https://raw.githubusercontent.com/transferwise/currency-flags';
|
const cdn = 'https://raw.githubusercontent.com/Lissy93/currency-flags';
|
||||||
return `${cdn}/master/src/flags/${currency.toLowerCase()}.png`;
|
return `${cdn}/master/flags_png_rectangle/${currency.toLowerCase()}.png`;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Given a Latitude & Longitude object, and optional zoom level, return link to OSM */
|
/* Given a Latitude & Longitude object, and optional zoom level, return link to OSM */
|
||||||
|
Loading…
Reference in New Issue
Block a user