a few small fixes

This commit is contained in:
counterweight 2025-12-26 19:00:56 +01:00
parent f6c552cefd
commit 8503c760dc
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
8 changed files with 157 additions and 55 deletions

View file

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