diff --git a/src/components/Nip05/index.tsx b/src/components/Nip05/index.tsx index f3b0f6f7..7af95025 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 196f4b69..4aeda5c6 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}
+
+ +
+ +