From f316ef19462ec120fc73ce688248e6ce8b625065 Mon Sep 17 00:00:00 2001 From: codytseng Date: Wed, 9 Jul 2025 14:54:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=92=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Nip05/index.tsx | 2 +- src/components/SearchDialog/index.tsx | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/components/Nip05/index.tsx b/src/components/Nip05/index.tsx index f3b0f6f..7af9502 100644 --- a/src/components/Nip05/index.tsx +++ b/src/components/Nip05/index.tsx @@ -25,7 +25,7 @@ export default function Nip05({ pubkey, append }: { pubkey: string; append?: str return (
e.stopPropagation()} > {nip05Name !== '_' ? ( diff --git a/src/components/SearchDialog/index.tsx b/src/components/SearchDialog/index.tsx index 196f4b6..4aeda5c 100644 --- a/src/components/SearchDialog/index.tsx +++ b/src/components/SearchDialog/index.tsx @@ -1,15 +1,16 @@ import { SecondaryPageLink } from '@/PageManager' -import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar' import { CommandDialog, CommandInput, CommandItem, CommandList } from '@/components/ui/command' import { useSearchProfiles } from '@/hooks' import { toNote, toNoteList, toProfile, toProfileList, toRelay } from '@/lib/link' -import { generateImageByPubkey } from '@/lib/pubkey' import { normalizeUrl } from '@/lib/url' import { TProfile } from '@/types' import { Hash, Notebook, Server, UserRound } from 'lucide-react' import { nip19 } from 'nostr-tools' import { Dispatch, useEffect, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' +import Nip05 from '../Nip05' +import UserAvatar from '../UserAvatar' +import Username from '../Username' export function SearchDialog({ open, setOpen }: { open: boolean; setOpen: Dispatch }) { const { t } = useTranslation() @@ -142,16 +143,15 @@ function ProfileItem({ profile, onClick }: { profile: TProfile; onClick?: () => return ( -
- - - - {profile.username} - - -
-
{profile.username}
-
{profile.about}
+
+ +
+ +