chore: Update translations
This commit is contained in:
parent
382f9b6e1b
commit
a3f1393999
@ -37,7 +37,7 @@ export const onRequest: PagesFunction<Env> = async context => {
|
|||||||
return new Response(body, {
|
return new Response(body, {
|
||||||
headers: {
|
headers: {
|
||||||
...Object.fromEntries(rsp.headers.entries()),
|
...Object.fromEntries(rsp.headers.entries()),
|
||||||
"cache-control": "public, max-age=60"
|
"cache-control": "public, max-age=60",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -32,8 +32,8 @@ const Avatar = ({
|
|||||||
}: AvatarProps) => {
|
}: AvatarProps) => {
|
||||||
const defaultImg = defaultAvatar(pubkey);
|
const defaultImg = defaultAvatar(pubkey);
|
||||||
const url = useMemo(() => {
|
const url = useMemo(() => {
|
||||||
if((image?.length ?? 0) > 0) return image;
|
if ((image?.length ?? 0) > 0) return image;
|
||||||
if((user?.picture?.length ?? 0) > 0) return user?.picture;
|
if ((user?.picture?.length ?? 0) > 0) return user?.picture;
|
||||||
return defaultImg;
|
return defaultImg;
|
||||||
}, [user, image, pubkey]);
|
}, [user, image, pubkey]);
|
||||||
|
|
||||||
|
@ -102,7 +102,13 @@ const AvatarSection = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex justify-between w-full">
|
<div className="flex justify-between w-full">
|
||||||
<Avatar pubkey={id ?? ""} user={user} onClick={() => setModalImage(user?.picture || "")} className="pointer" size={100} />
|
<Avatar
|
||||||
|
pubkey={id ?? ""}
|
||||||
|
user={user}
|
||||||
|
onClick={() => setModalImage(user?.picture || "")}
|
||||||
|
className="pointer"
|
||||||
|
size={100}
|
||||||
|
/>
|
||||||
<div className="profile-actions">
|
<div className="profile-actions">
|
||||||
{renderButtons()}
|
{renderButtons()}
|
||||||
{!isMe && id && <FollowButton pubkey={id} />}
|
{!isMe && id && <FollowButton pubkey={id} />}
|
||||||
@ -117,7 +123,7 @@ const AvatarSection = ({
|
|||||||
value: lnurl.lnurl,
|
value: lnurl.lnurl,
|
||||||
weight: 1,
|
weight: 1,
|
||||||
name: user?.display_name || user?.name,
|
name: user?.display_name || user?.name,
|
||||||
zap: { pubkey: id, anon: false }
|
zap: { pubkey: id, anon: false },
|
||||||
} as ZapTarget,
|
} as ZapTarget,
|
||||||
]
|
]
|
||||||
: undefined
|
: undefined
|
||||||
|
Loading…
x
Reference in New Issue
Block a user