Cleanup localeFlags.ts [skip ci]

This commit is contained in:
ErickSkrauch
2020-07-20 15:19:15 +03:00
parent c1a790f48b
commit 347fd59319
5 changed files with 34 additions and 40 deletions

View File

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