rename combobox to dropdown
This commit is contained in:
parent
7f71f83a59
commit
7b3e7e9ca2
4 changed files with 8 additions and 8 deletions
|
@ -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>
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue