From 1664d34b045ba4a855003e1c5e93df8efe4484ab Mon Sep 17 00:00:00 2001
From: "gpt-engineer-app[bot]"
<159125892+gpt-engineer-app[bot]@users.noreply.github.com>
Date: Sat, 18 Apr 2026 03:00:36 +0000
Subject: [PATCH] Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
---
src/routes/contacts.index.tsx | 104 +++++++++++++++++-----------------
1 file changed, 52 insertions(+), 52 deletions(-)
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 && (
- <>
-
-
- >
- )}
-
-
-
- );
- })}
+
+ );
+ })}
))}