feat: mentions
This commit is contained in:
parent
c92545a22d
commit
86468e75cb
9 changed files with 280 additions and 28 deletions
|
|
@ -71,15 +71,14 @@ export default function MuteListPage({ index }: { index?: number }) {
|
|||
|
||||
function UserItem({ pubkey }: { pubkey: string }) {
|
||||
const { profile } = useFetchProfile(pubkey)
|
||||
const { nip05, about } = profile || {}
|
||||
|
||||
return (
|
||||
<div className="flex gap-2 items-start">
|
||||
<UserAvatar userId={pubkey} className="shrink-0" />
|
||||
<div className="w-full overflow-hidden">
|
||||
<Username userId={pubkey} className="font-semibold truncate" skeletonClassName="h-4" />
|
||||
<Nip05 nip05={nip05} pubkey={pubkey} />
|
||||
<div className="truncate text-muted-foreground text-sm">{about}</div>
|
||||
<Nip05 pubkey={pubkey} />
|
||||
<div className="truncate text-muted-foreground text-sm">{profile?.about}</div>
|
||||
</div>
|
||||
<MuteButton pubkey={pubkey} />
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ export default function ProfilePage({ id, index }: { id?: string; index?: number
|
|||
}
|
||||
if (!profile) return <NotFoundPage />
|
||||
|
||||
const { banner, username, nip05, about, avatar, pubkey } = profile
|
||||
const { banner, username, about, avatar, pubkey } = profile
|
||||
return (
|
||||
<SecondaryPageLayout index={index} title={username} displayScrollToTopButton>
|
||||
<div className="px-4">
|
||||
|
|
@ -111,7 +111,7 @@ export default function ProfilePage({ id, index }: { id?: string; index?: number
|
|||
</div>
|
||||
<div className="pt-2">
|
||||
<div className="text-xl font-semibold">{username}</div>
|
||||
{nip05 && <Nip05 nip05={nip05} pubkey={pubkey} />}
|
||||
<Nip05 pubkey={pubkey} />
|
||||
<div className="flex gap-1 mt-1">
|
||||
<PubkeyCopy pubkey={pubkey} />
|
||||
<QrCodePopover pubkey={pubkey} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue