mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Small fixes.
This commit is contained in:
parent
5536e0b7e7
commit
efd4f4ca00
31 changed files with 621 additions and 586 deletions
|
|
@ -20,17 +20,16 @@ export function LanguageSetting() {
|
|||
|
||||
const handleReset = () => saveLocale(DEFAULT_LOCALE);
|
||||
|
||||
console.log({ options });
|
||||
|
||||
return (
|
||||
<Flexbox gap={10}>
|
||||
<Select
|
||||
items={options}
|
||||
value={locale}
|
||||
onChange={val => saveLocale(val as string)}
|
||||
allowSearch={true}
|
||||
onSearch={setSearch}
|
||||
menuProps={{ className: styles.menu }}
|
||||
>
|
||||
{item => <ListItem key={item}>{languages[item].label}</ListItem>}
|
||||
<Select value={locale} onChange={val => saveLocale(val as string)}>
|
||||
{options.map(item => (
|
||||
<ListItem key={item} id={item}>
|
||||
{languages[item].label}
|
||||
</ListItem>
|
||||
))}
|
||||
</Select>
|
||||
<Button onPress={handleReset}>{formatMessage(labels.reset)}</Button>
|
||||
</Flexbox>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue