@@ -172,7 +172,7 @@ export const User = memo(function User({
}
if (variant === 'simple') {
- if (status === 'pending') {
+ if (isFetching) {
return (
@@ -215,7 +215,7 @@ export const User = memo(function User({
}
if (variant === 'avatar') {
- if (status === 'pending') {
+ if (isFetching) {
return (
);
@@ -242,7 +242,7 @@ export const User = memo(function User({
}
if (variant === 'miniavatar') {
- if (status === 'pending') {
+ if (isFetching) {
return (
);
@@ -269,7 +269,7 @@ export const User = memo(function User({
}
if (variant === 'childnote') {
- if (status === 'pending') {
+ if (isFetching) {
return (
);
@@ -309,7 +309,7 @@ export const User = memo(function User({
}
if (variant === 'stacked') {
- if (status === 'pending') {
+ if (isFetching) {
return (
);
@@ -336,7 +336,7 @@ export const User = memo(function User({
}
if (variant === 'ministacked') {
- if (status === 'pending') {
+ if (isFetching) {
return (
);
@@ -363,7 +363,7 @@ export const User = memo(function User({
}
if (variant === 'repost') {
- if (status === 'pending') {
+ if (isFetching) {
return (
@@ -389,7 +389,7 @@ export const User = memo(function User({
alt={pubkey}
loading="lazy"
decoding="async"
- className="h-6 w-6 rounded"
+ className="h-6 w-6 rounded object-cover"
/>
@@ -434,7 +434,7 @@ export const User = memo(function User({
alt={pubkey}
loading="lazy"
decoding="async"
- className="h-10 w-10 rounded-lg ring-1 ring-neutral-200/50 dark:ring-neutral-800/50"
+ className="h-10 w-10 rounded-lg object-cover ring-1 ring-neutral-200/50 dark:ring-neutral-800/50"
/>
@@ -515,7 +515,7 @@ export const User = memo(function User({
alt={pubkey}
loading="lazy"
decoding="async"
- className="h-10 w-10 rounded-lg"
+ className="h-10 w-10 rounded-lg object-cover"
/>
{
@@ -44,5 +44,5 @@ export function useProfile(pubkey: string, embed?: string) {
retry: 2,
});
- return { status, user, error };
+ return { isFetching, isError, user };
}