From 6ef4e960d6f275881287264da219e6382e31df10 Mon Sep 17 00:00:00 2001 From: codytseng Date: Tue, 4 Feb 2025 22:21:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchDialog/index.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/SearchDialog/index.tsx b/src/components/SearchDialog/index.tsx index d3dbf5f..f005616 100644 --- a/src/components/SearchDialog/index.tsx +++ b/src/components/SearchDialog/index.tsx @@ -27,6 +27,12 @@ export function SearchDialog({ open, setOpen }: { open: boolean; setOpen: Dispat } }, [input]) + useEffect(() => { + profiles.forEach((profile) => { + console.log(profile.pubkey) + }) + }, [profiles]) + const list = useMemo(() => { const search = input.trim() if (!search) return @@ -66,7 +72,7 @@ export function SearchDialog({ open, setOpen }: { open: boolean; setOpen: Dispat ))} {profiles.length >= 10 && ( setOpen(false)}> - setOpen(false)} className="text-center"> + setOpen(false)} className="text-center">
{t('Show more...')}
@@ -96,7 +102,7 @@ export function SearchDialog({ open, setOpen }: { open: boolean; setOpen: Dispat function NormalItem({ search, onClick }: { search: string; onClick?: () => void }) { return ( - +
{search}
@@ -119,7 +125,7 @@ function HashtagItem({ search, onClick }: { search: string; onClick?: () => void function NoteItem({ id, onClick }: { id: string; onClick?: () => void }) { return ( - +
{id}
@@ -130,7 +136,7 @@ function NoteItem({ id, onClick }: { id: string; onClick?: () => void }) { function ProfileIdItem({ id, onClick }: { id: string; onClick?: () => void }) { return ( - +
{id}
@@ -141,7 +147,7 @@ function ProfileIdItem({ id, onClick }: { id: string; onClick?: () => void }) { function ProfileItem({ profile, onClick }: { profile: TProfile; onClick?: () => void }) { return ( - +
@@ -162,7 +168,7 @@ function ProfileItem({ profile, onClick }: { profile: TProfile; onClick?: () => function RelayItem({ url, onClick }: { url: string; onClick?: () => void }) { return ( - +
{url}