mirror of
https://github.com/upscayl/upscayl.git
synced 2026-02-19 11:55:37 -05:00
fix(language-switcher): unlabel as theme selector, use already-fetched
atom value Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -32,9 +32,8 @@ const LanguageSwitcher = ({ hideLabel = false }: { hideLabel?: boolean }) => {
|
||||
<p className="text-sm font-medium">{t("SETTINGS.LANGUAGE.TITLE")}</p>
|
||||
)}
|
||||
<select
|
||||
data-choose-theme
|
||||
className="select select-primary"
|
||||
value={useAtomValue(localeAtom)}
|
||||
value={locale}
|
||||
onChange={(e) => setLocale(e.target.value as keyof typeof locales)}
|
||||
>
|
||||
{Object.entries(locales)
|
||||
|
||||
Reference in New Issue
Block a user