Changed icons for other options that are not global variable

This commit is contained in:
Lucas Oliveira 2024-03-20 18:28:59 +01:00
commit 6dc4599a9b
3 changed files with 4 additions and 1 deletions

View file

@ -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"}>

View file

@ -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"
/> />

View file

@ -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;