rename combobox to dropdown

This commit is contained in:
Chris Kruining 2025-01-07 07:34:46 +01:00
parent 7f71f83a59
commit 7b3e7e9ca2
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
4 changed files with 8 additions and 8 deletions

View file

@ -1,7 +1,7 @@
import { Component } from "solid-js";
import { internal_useI18n } from "./context";
import { locales } from "./constants";
import { ComboBox } from "~/components/combobox";
import { Dropdown } from "~/components/dropdown";
import { Dynamic } from "solid-js/web";
import css from './picker.module.css';
@ -10,7 +10,7 @@ interface LocalePickerProps { }
export const LocalePicker: Component<LocalePickerProps> = (props) => {
const { locale, setLocale } = internal_useI18n();
return <ComboBox
return <Dropdown
id="locale-picker"
class={css.box}
value={locale()}
@ -19,5 +19,5 @@ export const LocalePicker: Component<LocalePickerProps> = (props) => {
showCaret={false}
>
{(locale, { flag, label }) => <Dynamic component={flag} lang={locale} aria-label={label} class={css.flag} />}
</ComboBox>
</Dropdown>
};