fix: update variable names in Combobox component for clarity
This commit is contained in:
parent
dc794a29d3
commit
1758b7837e
@ -96,14 +96,14 @@ export const Combobox = <TFormValues extends Record<string, unknown>>(
|
|||||||
'bg-white transition duration-100 ease-in data-[leave]:data-[closed]:opacity-0',
|
'bg-white transition duration-100 ease-in data-[leave]:data-[closed]:opacity-0',
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{filteredOptions?.map((person) => (
|
{filteredOptions?.map((option) => (
|
||||||
<ComboboxOption
|
<ComboboxOption
|
||||||
key={person.id}
|
key={option.id}
|
||||||
value={person}
|
value={option}
|
||||||
className="group flex cursor-default items-center gap-2 rounded-lg px-3 py-1.5 select-none data-[focus]:bg-white/10"
|
className="group flex cursor-default items-center gap-2 rounded-lg px-3 py-1.5 select-none data-[focus]:bg-white/10"
|
||||||
>
|
>
|
||||||
<CheckIcon className="invisible size-4 group-data-[selected]:visible" />
|
<CheckIcon className="invisible size-4 group-data-[selected]:visible" />
|
||||||
<div className="text-sm/6">{person.name}</div>
|
<div className="text-sm/6">{option.name}</div>
|
||||||
</ComboboxOption>
|
</ComboboxOption>
|
||||||
))}
|
))}
|
||||||
</ComboboxOptions>
|
</ComboboxOptions>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user