mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-11-17 21:53:03 +05:30
Fix local flag icon url
This commit is contained in:
parent
d5e0e9a7fb
commit
6373e95e5c
@ -28,7 +28,11 @@ export default {
|
|||||||
* @returns {string}
|
* @returns {string}
|
||||||
*/
|
*/
|
||||||
getIconUrl(locale: string): string {
|
getIconUrl(locale: string): string {
|
||||||
return require(`flag-icon-css/flags/4x3/${localeToCountryCode[locale] ||
|
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||||
locale}.svg`);
|
const mod = require(`flag-icon-css/flags/4x3/${localeToCountryCode[
|
||||||
|
locale
|
||||||
|
] || locale}.svg`);
|
||||||
|
|
||||||
|
return mod.default || mod;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user