Changed props for new Dropdown.

This commit is contained in:
Mike Cao 2023-12-22 21:26:42 -08:00
parent e5f820bd49
commit c9d3a18af7
8 changed files with 12 additions and 12 deletions

View file

@ -19,7 +19,7 @@ export function LanguageSetting() {
items={options}
value={locale}
renderValue={renderValue}
onChange={saveLocale}
onSelect={saveLocale}
menuProps={{ style: { height: 300, width: 300 } }}
>
{item => <Item key={item}>{languages[item].label}</Item>}

View file

@ -16,7 +16,7 @@ export function TimezoneSetting() {
<Dropdown
items={options}
value={timezone}
onChange={saveTimezone}
onSelect={saveTimezone}
style={{ flex: 1 }}
menuProps={{ style: { height: 300 } }}
>