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 ?? ""}
options={globalVariablesEntries}
optionsPlaceholder={"Global Variables"}
optionsIcon="Globe"
optionsButton={
<AddNewVariableButton>
<CommandItem value={"new"}>

View file

@ -30,6 +30,7 @@ export default function InputComponent({
className,
id = "",
blurOnEnter = false,
optionsIcon = "ChevronsUpDown",
selectedOption,
setSelectedOption,
options = [],
@ -208,7 +209,7 @@ export default function InputComponent({
)}
>
<ForwardedIconComponent
name="Globe"
name={optionsIcon}
className={"h-4 w-4"}
aria-hidden="true"
/>

View file

@ -20,6 +20,7 @@ export type InputComponentType = {
className?: string;
id?: string;
blurOnEnter?: boolean;
optionsIcon?: string;
optionsPlaceholder?: string;
options?: string[];
optionsButton?: ReactElement;