feat: nip05 skeleton

This commit is contained in:
codytseng
2025-02-22 01:14:13 +08:00
parent 08f22073bd
commit 0f7a3aa593
3 changed files with 27 additions and 6 deletions

View File

@@ -21,7 +21,11 @@ export default function Username({
}) {
const { profile } = useFetchProfile(userId)
if (!profile && !withoutSkeleton) {
return <Skeleton className={cn('w-16 my-1', skeletonClassName)} />
return (
<div className="py-1">
<Skeleton className={cn('w-16', skeletonClassName)} />
</div>
)
}
if (!profile) return null