a few small fixes
This commit is contained in:
parent
f6c552cefd
commit
8503c760dc
8 changed files with 157 additions and 55 deletions
|
|
@ -4,10 +4,10 @@ import { useState, useRef, useEffect } from "react";
|
|||
import { useLanguage, type Locale } from "../hooks/useLanguage";
|
||||
import { sharedStyles } from "../styles/shared";
|
||||
|
||||
const LANGUAGES: Array<{ code: Locale; name: string; flag: string }> = [
|
||||
{ code: "es", name: "Español", flag: "🇪🇸" },
|
||||
{ code: "en", name: "English", flag: "🇬🇧" },
|
||||
{ code: "ca", name: "Català", flag: "🇪🇸" },
|
||||
const LANGUAGES: Array<{ code: Locale; name: string }> = [
|
||||
{ code: "es", name: "Español" },
|
||||
{ code: "en", name: "English" },
|
||||
{ code: "ca", name: "Català" },
|
||||
];
|
||||
|
||||
export function LanguageSelector() {
|
||||
|
|
@ -45,7 +45,6 @@ export function LanguageSelector() {
|
|||
gap: "0.5rem",
|
||||
}}
|
||||
>
|
||||
<span>{currentLanguage?.flag}</span>
|
||||
<span>{currentLanguage?.name}</span>
|
||||
</button>
|
||||
|
||||
|
|
@ -97,7 +96,6 @@ export function LanguageSelector() {
|
|||
}
|
||||
}}
|
||||
>
|
||||
<span>{lang.flag}</span>
|
||||
<span>{lang.name}</span>
|
||||
</button>
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue