Skip to content

Commit

Permalink
add icon for language switch
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Dec 6, 2024
1 parent f906626 commit ad00ab6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/pages/Home/components/Switcher.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useTranslation } from 'react-i18next';
import { Select } from '@mantine/core';
import { IconLanguage } from '@tabler/icons-react';

export const Switcher = () => {

Expand Down Expand Up @@ -30,6 +31,8 @@ export const Switcher = () => {
placeholder="Select language"
data={languageOptions} // Opciones del dropdown
value={i18n.resolvedLanguage} // Idioma seleccionado actualmente
leftSectionPointerEvents="none"
leftSection={<IconLanguage size="1.25rem" />}
onChange={(value) => value && i18n.changeLanguage(value)} // Cambiar idioma
styles={{
root: {
Expand Down

0 comments on commit ad00ab6

Please sign in to comment.