fix: 🐛
This commit is contained in:
parent
a1285fe44d
commit
d189d51e26
5 changed files with 34 additions and 11 deletions
|
|
@ -2,6 +2,7 @@ import FollowButton from '@/components/FollowButton'
|
|||
import Nip05 from '@/components/Nip05'
|
||||
import UserAvatar from '@/components/UserAvatar'
|
||||
import Username from '@/components/Username'
|
||||
import { Skeleton } from '@/components/ui/skeleton'
|
||||
|
||||
export default function UserItem({ pubkey }: { pubkey: string }) {
|
||||
return (
|
||||
|
|
@ -19,3 +20,17 @@ export default function UserItem({ pubkey }: { pubkey: string }) {
|
|||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export function UserItemSkeleton({ hideFollowButton }: { hideFollowButton?: boolean }) {
|
||||
return (
|
||||
<div className="flex gap-2 items-center h-14">
|
||||
<Skeleton className="w-10 h-10 rounded-full shrink-0" />
|
||||
<div className="w-full">
|
||||
<div className="py-1">
|
||||
<Skeleton className="w-16 h-4" />
|
||||
</div>
|
||||
</div>
|
||||
{!hideFollowButton && <Skeleton className="rounded-full min-w-28 h-9" />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue