mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Cleanup localeFlags.ts [skip ci]
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
import React, { ComponentType, ReactNode } from 'react';
|
||||
import { localeFlags } from 'app/components/i18n';
|
||||
import { getLocaleIconUrl } from 'app/components/i18n';
|
||||
import { FormattedMessage as Message } from 'react-intl';
|
||||
|
||||
import styles from './languageSwitcher.scss';
|
||||
@ -31,7 +31,7 @@ const LocaleItem: ComponentType<Props> = ({ locale: { code, name, englishName, p
|
||||
<div
|
||||
className={styles.languageIco}
|
||||
style={{
|
||||
backgroundImage: `url('${localeFlags.getIconUrl(code)}')`,
|
||||
backgroundImage: `url('${getLocaleIconUrl(code)}')`,
|
||||
}}
|
||||
/>
|
||||
<div className={styles.languageCaptions}>
|
||||
|
@ -1,7 +1,7 @@
|
||||
import React, { ComponentType, useCallback } from 'react';
|
||||
import { useDispatch, useSelector } from 'react-redux';
|
||||
import clsx from 'clsx';
|
||||
import { localeFlags } from 'app/components/i18n';
|
||||
import { getLocaleIconUrl } from 'app/components/i18n';
|
||||
import LANGS from 'app/i18n';
|
||||
import { create as createPopup } from 'app/components/ui/popup/actions';
|
||||
import LanguageSwitcher from 'app/components/languageSwitcher';
|
||||
@ -30,7 +30,7 @@ const LanguageLink: ComponentType = () => {
|
||||
<span
|
||||
className={styles.languageIcon}
|
||||
style={{
|
||||
backgroundImage: `url('${localeFlags.getIconUrl(localeDefinition.code)}')`,
|
||||
backgroundImage: `url('${getLocaleIconUrl(localeDefinition.code)}')`,
|
||||
}}
|
||||
/>
|
||||
{localeDefinition.name}
|
||||
|
Reference in New Issue
Block a user