feat: improve parent note preview
This commit is contained in:
parent
e6516d7acd
commit
212a4ac103
11 changed files with 167 additions and 60 deletions
|
|
@ -64,7 +64,13 @@ export function SimpleUsername({
|
|||
skeletonClassName?: string
|
||||
}) {
|
||||
const { profile } = useFetchProfile(userId)
|
||||
if (!profile) return <Skeleton className={cn('w-16 my-1', skeletonClassName)} />
|
||||
if (!profile) {
|
||||
return (
|
||||
<div className="py-1">
|
||||
<Skeleton className={cn('w-16', skeletonClassName)} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
const { username } = profile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue