Add support for multiple RSS feeds

This commit is contained in:
ajnart
2023-04-05 14:16:28 +09:00
parent 7cf6fe53fc
commit 6811388991
3 changed files with 123 additions and 135 deletions

View File

@@ -243,6 +243,25 @@ const WidgetOptionTypeSwitch: FC<{
</DraggableList>
</Stack>
);
case 'multiple-text':
return (
<MultiSelect
data={value.map((v: any) => ({ value: v, label: v }))}
label={t(`descriptor.settings.${key}.label`)}
description={t(`descriptor.settings.${key}.description`)}
defaultValue={value as string[]}
withinPortal
searchable
creatable
getCreateLabel={(query) => `+ Add ${query}`}
onChange={(values) =>
handleChange(
key,
values.map((item: string) => item)
)
}
/>
);
/* eslint-enable no-case-declarations */
default:
return null;