feat: search profiles

This commit is contained in:
2023-01-28 16:31:03 +00:00
parent 81a928a11c
commit 27b041a894
4 changed files with 12 additions and 2 deletions

View File

@ -12,7 +12,8 @@ export interface ProfilePreviewProps {
options?: {
about?: boolean
},
actions?: ReactNode
actions?: ReactNode,
className?: string
}
export default function ProfilePreview(props: ProfilePreviewProps) {
const pubkey = props.pubkey;
@ -24,7 +25,7 @@ export default function ProfilePreview(props: ProfilePreviewProps) {
};
return (
<div className="profile-preview" ref={ref}>
<div className={`profile-preview${props.className ? ` ${props.className}` : ""}`} ref={ref}>
{inView && <>
<ProfileImage pubkey={pubkey} subHeader=
{options.about ? <div className="f-ellipsis about">