diff --git a/src/routes/contacts.index.tsx b/src/routes/contacts.index.tsx index 67c830f..98ea3ca 100644 --- a/src/routes/contacts.index.tsx +++ b/src/routes/contacts.index.tsx @@ -213,63 +213,63 @@ function ContactsIndex() {
{grouped.map(([letter, items]) => (
-
+
{letter}
    {items.map((c) => { - const typeLabel = CONTACT_TYPES.find((t) => t.value === c.contact_type)?.label ?? c.contact_type; - const canEdit = isAdmin || c.created_by === user?.id; - return ( -
  • -
    - -
    -
    - {c.name} - {typeLabel} - {c.title && {c.title}} + const typeLabel = CONTACT_TYPES.find((t) => t.value === c.contact_type)?.label ?? c.contact_type; + const canEdit = isAdmin || c.created_by === user?.id; + return ( +
  • +
    + +
    +
    + {c.name} + {typeLabel} + {c.title && {c.title}} +
    +
    + {c.company && {c.company}} + {c.email && {c.email}} + {c.phone && {c.phone}} +
    +
    +
    + {c.case_links > 0 && {c.case_links} case{c.case_links === 1 ? "" : "s"}} + {c.client_links > 0 && {c.client_links} client{c.client_links === 1 ? "" : "s"}} +
    + + +
    + + {canEdit && ( + <> + + + + )} +
    -
    - {c.company && {c.company}} - {c.email && {c.email}} - {c.phone && {c.phone}} -
    -
-
- {c.case_links > 0 && {c.case_links} case{c.case_links === 1 ? "" : "s"}} - {c.client_links > 0 && {c.client_links} client{c.client_links === 1 ? "" : "s"}} -
- - -
- - {canEdit && ( - <> - - - - )} -
-
- - ); - })} + + ); + })}
))}