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