Changed icons for other options that are not global variable
This commit is contained in:
parent
1b6102524a
commit
6dc4599a9b
3 changed files with 4 additions and 1 deletions
|
|
@ -549,6 +549,7 @@ export default function ParameterComponent({
|
||||||
value={data.node?.template[name].value ?? ""}
|
value={data.node?.template[name].value ?? ""}
|
||||||
options={globalVariablesEntries}
|
options={globalVariablesEntries}
|
||||||
optionsPlaceholder={"Global Variables"}
|
optionsPlaceholder={"Global Variables"}
|
||||||
|
optionsIcon="Globe"
|
||||||
optionsButton={
|
optionsButton={
|
||||||
<AddNewVariableButton>
|
<AddNewVariableButton>
|
||||||
<CommandItem value={"new"}>
|
<CommandItem value={"new"}>
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,7 @@ export default function InputComponent({
|
||||||
className,
|
className,
|
||||||
id = "",
|
id = "",
|
||||||
blurOnEnter = false,
|
blurOnEnter = false,
|
||||||
|
optionsIcon = "ChevronsUpDown",
|
||||||
selectedOption,
|
selectedOption,
|
||||||
setSelectedOption,
|
setSelectedOption,
|
||||||
options = [],
|
options = [],
|
||||||
|
|
@ -208,7 +209,7 @@ export default function InputComponent({
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ForwardedIconComponent
|
<ForwardedIconComponent
|
||||||
name="Globe"
|
name={optionsIcon}
|
||||||
className={"h-4 w-4"}
|
className={"h-4 w-4"}
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@ export type InputComponentType = {
|
||||||
className?: string;
|
className?: string;
|
||||||
id?: string;
|
id?: string;
|
||||||
blurOnEnter?: boolean;
|
blurOnEnter?: boolean;
|
||||||
|
optionsIcon?: string;
|
||||||
optionsPlaceholder?: string;
|
optionsPlaceholder?: string;
|
||||||
options?: string[];
|
options?: string[];
|
||||||
optionsButton?: ReactElement;
|
optionsButton?: ReactElement;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue