mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-20 22:54:23 +01:00
info overload send screen
This commit is contained in:
@@ -15,7 +15,7 @@ const createValue = (name: string): TextItem => {
|
||||
return { id: createUniqueId(), name, kind: "text" };
|
||||
};
|
||||
|
||||
export function TagEditor(props: { title: string, values: TagItem[], setValues: (values: TagItem[]) => void, selectedValues: TagItem[], setSelectedValues: (values: TagItem[]) => void }) {
|
||||
export function TagEditor(props: { title: string, values: TagItem[], setValues: (values: TagItem[]) => void, selectedValues: TagItem[], setSelectedValues: (values: TagItem[]) => void, placeholder: string }) {
|
||||
console.log(props.values);
|
||||
const onChange = (selected: TagItem[]) => {
|
||||
props.setSelectedValues(selected);
|
||||
@@ -47,7 +47,7 @@ export function TagEditor(props: { title: string, values: TagItem[], setValues:
|
||||
multiple
|
||||
initialValue={props.selectedValues}
|
||||
onChange={onChange}
|
||||
placeholder="Where's it coming from?"
|
||||
placeholder={props.placeholder}
|
||||
{...selectProps}
|
||||
/>
|
||||
<div class="flex gap-2 flex-wrap">
|
||||
|
||||
Reference in New Issue
Block a user