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}