Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 17:08:09 +00:00
co-authored by renee-png
parent c2fc933bb5
commit c08ec1ff16
4 changed files with 58 additions and 61 deletions
+11 -13
View File
@@ -1148,19 +1148,17 @@ function AddCollectionDialog({
: "All homeowners on this HOA already have a collection on this matter."}
</p>
) : (
<Select value={homeownerId} onValueChange={setHomeownerId}>
<SelectTrigger>
<SelectValue placeholder="Pick a homeowner…" />
</SelectTrigger>
<SelectContent>
{available.map((h) => (
<SelectItem key={h.id} value={h.id}>
{h.last_name}, {h.first_name}
{h.unit_number ? ` — Unit ${h.unit_number}` : ""}
</SelectItem>
))}
</SelectContent>
</Select>
<SearchableSelect
value={homeownerId}
onValueChange={setHomeownerId}
placeholder="Pick a homeowner…"
searchPlaceholder="Search homeowners…"
emptyText="No homeowners found."
options={available.map((h) => {
const label = `${h.last_name}, ${h.first_name}${h.unit_number ? ` — Unit ${h.unit_number}` : ""}`;
return { value: h.id, label, keywords: `${h.first_name} ${h.last_name} ${h.unit_number ?? ""}` };
})}
/>
)}
</div>
<div>