You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!recipient)thrownewError(`Recipient with ID of "${id}" not found`)
21
24
25
+
constfilteredMessages=searchQuery
26
+
? matchSorter(recipient.messages,searchQuery,{
27
+
keys: ['content'],
28
+
})
29
+
: recipient.messages
30
+
31
+
functionhandleSearch(value: string){
32
+
if(value){
33
+
setSearchParams({q: value})
34
+
}else{
35
+
setSearchParams({})
36
+
}
37
+
}
38
+
22
39
return(
23
40
<divclassName="flex min-h-0 flex-grow flex-col">
24
41
{/* Left sidebar (header on mobile) */}
@@ -31,26 +48,57 @@ export function RecipientRoute() {
31
48
</ButtonLink>
32
49
</div>
33
50
34
-
<divclassName="mt-4 flex justify-between gap-4">
35
-
<divclassName="flex items-center gap-2">
36
-
<Iconname="Phone">
37
-
<spanclassName="font-mono">
38
-
{recipient.countryCode}{recipient.phone}
39
-
</span>
40
-
</Icon>
41
-
</div>
51
+
<divclassName="mt-4 flex flex-col gap-4">
52
+
<divclassName="flex justify-between gap-4">
53
+
<divclassName="flex items-center gap-2">
54
+
<Iconname="Phone">
55
+
<spanclassName="font-mono">
56
+
{recipient.countryCode}{recipient.phone}
57
+
</span>
58
+
</Icon>
59
+
</div>
42
60
43
-
<divclassName="flex items-center gap-2">
44
-
<Iconname="Clock">
45
-
<span>
46
-
{recipient.schedule ? (
47
-
`Every ${DAY_NAMES[recipient.nextScheduledAt?.getDay()??0]} at ${recipient.nextScheduledAt?.getHours()}:${recipient.nextScheduledAt?.getMinutes()?.toString().padStart(2,'0')}`
`Every ${DAY_NAMES[recipient.nextScheduledAt?.getDay()??0]} at ${recipient.nextScheduledAt?.getHours()}:${recipient.nextScheduledAt?.getMinutes()?.toString().padStart(2,'0')}`
0 commit comments