diff --git a/libs/blocks/src/lib/navigation/language-switcher/index.tsx b/libs/blocks/src/lib/navigation/language-switcher/index.tsx index b2256d981..d48711b3d 100644 --- a/libs/blocks/src/lib/navigation/language-switcher/index.tsx +++ b/libs/blocks/src/lib/navigation/language-switcher/index.tsx @@ -16,7 +16,10 @@ const LanguageSwitcher = () => { }} > - + {activeLanguage?.shortName} diff --git a/libs/blocks/src/lib/navigation/language-switcher/language.content.tsx b/libs/blocks/src/lib/navigation/language-switcher/language.content.tsx index 233cda132..74cacf09f 100644 --- a/libs/blocks/src/lib/navigation/language-switcher/language.content.tsx +++ b/libs/blocks/src/lib/navigation/language-switcher/language.content.tsx @@ -1,15 +1,23 @@ import { useLanguageSwitcher } from '@deriv-com/hooks'; -import { Text } from '@deriv/quill-design'; +import { Text, qtMerge } from '@deriv/quill-design'; const LanguageContent = () => { - const { langItems, selectLanguage } = useLanguageSwitcher(); + const { langItems, selectLanguage, activeLanguage } = useLanguageSwitcher(); return (
{Object.keys(langItems).map((item) => ( -
+
{ selectLanguage?.(langItems[item]); }}