From ad00ab62ec7f0c449e19e84d60be78c5dd46ee8c Mon Sep 17 00:00:00 2001 From: Paolo Flores Date: Fri, 6 Dec 2024 11:52:19 -0500 Subject: [PATCH] add icon for language switch --- app/src/pages/Home/components/Switcher.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/pages/Home/components/Switcher.tsx b/app/src/pages/Home/components/Switcher.tsx index 5bc0482..7865d43 100644 --- a/app/src/pages/Home/components/Switcher.tsx +++ b/app/src/pages/Home/components/Switcher.tsx @@ -1,5 +1,6 @@ import { useTranslation } from 'react-i18next'; import { Select } from '@mantine/core'; +import { IconLanguage } from '@tabler/icons-react'; export const Switcher = () => { @@ -30,6 +31,8 @@ export const Switcher = () => { placeholder="Select language" data={languageOptions} // Opciones del dropdown value={i18n.resolvedLanguage} // Idioma seleccionado actualmente + leftSectionPointerEvents="none" + leftSection={} onChange={(value) => value && i18n.changeLanguage(value)} // Cambiar idioma styles={{ root: {