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',
|
||||
)}
|
||||
>
|
||||
{filteredOptions?.map((person) => (
|
||||
{filteredOptions?.map((option) => (
|
||||
<ComboboxOption
|
||||
key={person.id}
|
||||
value={person}
|
||||
key={option.id}
|
||||
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"
|
||||
>
|
||||
<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>
|
||||
))}
|
||||
</ComboboxOptions>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user