diff --git a/src/components/Nip05/index.tsx b/src/components/Nip05/index.tsx index cc2a0367..bf416ff1 100644 --- a/src/components/Nip05/index.tsx +++ b/src/components/Nip05/index.tsx @@ -11,18 +11,18 @@ export default function Nip05({ pubkey }: { pubkey: string }) { return ( nip05Name && nip05Domain && ( -
+
{nip05Name !== '_' ? (
@{nip05Name}
) : null} {nip05IsVerified ? : } -
{nip05Domain}
+
{nip05Domain}
) diff --git a/src/components/SearchDialog/index.tsx b/src/components/SearchDialog/index.tsx index a833e3fb..2499ed25 100644 --- a/src/components/SearchDialog/index.tsx +++ b/src/components/SearchDialog/index.tsx @@ -76,7 +76,7 @@ export function SearchDialog({ open, setOpen }: { open: boolean; setOpen: Dispat return ( - {list} + {list} ) } diff --git a/src/components/TextareaWithMentions.tsx/index.tsx b/src/components/TextareaWithMentions.tsx/index.tsx index 6164ec0b..8b291278 100644 --- a/src/components/TextareaWithMentions.tsx/index.tsx +++ b/src/components/TextareaWithMentions.tsx/index.tsx @@ -1,10 +1,4 @@ -import { - Command, - CommandGroup, - CommandInput, - CommandItem, - CommandList -} from '@/components/ui/command' +import { Command, CommandInput, CommandItem, CommandList } from '@/components/ui/command' import { Textarea } from '@/components/ui/textarea' import { useSearchProfiles } from '@/hooks' import { pubkeyToNpub } from '@/lib/pubkey' @@ -159,31 +153,29 @@ export default function TextareaWithMentions({
diff --git a/src/components/ui/command.tsx b/src/components/ui/command.tsx index 747a03a6..2741e1fa 100644 --- a/src/components/ui/command.tsx +++ b/src/components/ui/command.tsx @@ -77,9 +77,9 @@ CommandInput.displayName = CommandPrimitive.Input.displayName const CommandList = React.forwardRef< React.ElementRef, - React.ComponentPropsWithoutRef ->(({ className, ...props }, ref) => ( - + React.ComponentPropsWithoutRef & { scrollAreaClassName?: string } +>(({ className, scrollAreaClassName, ...props }, ref) => ( + )) diff --git a/src/hooks/useSearchProfiles.tsx b/src/hooks/useSearchProfiles.tsx index 50b41afa..c2b518ea 100644 --- a/src/hooks/useSearchProfiles.tsx +++ b/src/hooks/useSearchProfiles.tsx @@ -23,7 +23,7 @@ export function useSearchProfiles(search: string, limit: number) { setProfiles([]) try { const profiles = await client.fetchProfiles( - searchableRelayUrls.length > 0 ? searchableRelayUrls : SEARCHABLE_RELAY_URLS, + searchableRelayUrls.concat(SEARCHABLE_RELAY_URLS).slice(0, 4), { search, limit