mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
💡 Address PR comments
This commit is contained in:
@@ -247,14 +247,14 @@ const WidgetOptionTypeSwitch: FC<{
|
||||
case 'multiple-text':
|
||||
return (
|
||||
<MultiSelect
|
||||
data={value.map((v: any) => ({ value: v, label: v }))}
|
||||
data={value.map((name: any) => ({ value: name, label: name }))}
|
||||
label={t(`descriptor.settings.${key}.label`)}
|
||||
description={t(`descriptor.settings.${key}.description`)}
|
||||
defaultValue={value as string[]}
|
||||
withinPortal
|
||||
searchable
|
||||
creatable
|
||||
getCreateLabel={(query) => `+ Add ${query}`}
|
||||
getCreateLabel={(query) => t('common:createItem', query)}
|
||||
onChange={(values) =>
|
||||
handleChange(
|
||||
key,
|
||||
|
||||
Reference in New Issue
Block a user