Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-26 09:00:03 +00:00
co-authored by renee-png
parent 18b02ab6b7
commit 352628459c
@@ -40,6 +40,7 @@ export interface ContactRecord {
postal_code?: string | null;
notes?: string | null;
contact_type?: string | null;
property_address?: string | null;
}
export function ContactFormDialog({
@@ -92,6 +93,7 @@ export function ContactFormDialog({
postal_code: form.postal_code || null,
notes: form.notes || null,
contact_type: form.contact_type || "other",
property_address: form.property_address || null,
};
let saved: { id: string; name: string } | null = null;
if (contact?.id) {
@@ -185,6 +187,19 @@ export function ContactFormDialog({
<Label>Postal code</Label>
<Input value={form.postal_code ?? ""} onChange={(e) => set("postal_code", e.target.value)} />
</div>
{form.contact_type === "homeowner" && (
<div className="space-y-1.5 sm:col-span-2">
<Label>Property address</Label>
<Input
placeholder="Street, unit, city, state ZIP"
value={form.property_address ?? ""}
onChange={(e) => set("property_address", e.target.value)}
/>
<p className="text-xs text-muted-foreground">
Used as the property address on collection ledger statements.
</p>
</div>
)}
<div className="space-y-1.5 sm:col-span-2">
<Label>Notes</Label>
<Textarea rows={3} value={form.notes ?? ""} onChange={(e) => set("notes", e.target.value)} />