diff --git a/frontend/src/components/ContactHistory.tsx b/frontend/src/components/ContactHistory.tsx index 0450b15..a0940a1 100644 --- a/frontend/src/components/ContactHistory.tsx +++ b/frontend/src/components/ContactHistory.tsx @@ -15,7 +15,7 @@ export default function ContactHistory() { {isLoading &&
Loading...
} {error &&
{(error as Error).message}
} - {data?.messages?.map((m) => ( + {data?.messages?.map((m: any) => (
{data.contact}
{m.time}{m.duration_fmt ? ` · ${m.duration_fmt}` : ""}
diff --git a/frontend/src/components/ContactsPage.tsx b/frontend/src/components/ContactsPage.tsx index a86d1a9..7a61101 100644 --- a/frontend/src/components/ContactsPage.tsx +++ b/frontend/src/components/ContactsPage.tsx @@ -38,23 +38,23 @@ export default function ContactsPage() {
- {data.map((c) => ( + {data.map((c: any) => ( - - ))} @@ -121,7 +121,7 @@ function ContactMenu({ number, name }: { number?: string; name?: string }) { )} Loading...} {error &&
{(error as Error).message}
} - {data?.messages?.map((m) => { + {data?.messages?.map((m: any) => { const whoRaw = m.contact_name || m.callerid || "Unknown caller"; const num = sanitiseNumber(m.callerid); const showAdd = !m.contact_name && num; @@ -192,7 +192,7 @@ function MsgContactMenu({ number, name, callerid }: { number?: string; name?: st )}
+ {c.name || "Unnamed"}
- + {c.number_e164} {c.email && `· ${c.email}`}
- Edit - {" "} - History - {" "} - - - - + +
+ Edit + History + + + + +