1
0
forked from Kieran/snort

chore: Update translations

This commit is contained in:
Kieran 2024-03-19 12:04:21 +00:00
parent 382f9b6e1b
commit a3f1393999
4 changed files with 26 additions and 20 deletions

View File

@ -37,7 +37,7 @@ export const onRequest: PagesFunction<Env> = async context => {
return new Response(body, {
headers: {
...Object.fromEntries(rsp.headers.entries()),
"cache-control": "public, max-age=60"
"cache-control": "public, max-age=60",
},
});
}

View File

@ -32,8 +32,8 @@ const Avatar = ({
}: AvatarProps) => {
const defaultImg = defaultAvatar(pubkey);
const url = useMemo(() => {
if((image?.length ?? 0) > 0) return image;
if((user?.picture?.length ?? 0) > 0) return user?.picture;
if ((image?.length ?? 0) > 0) return image;
if ((user?.picture?.length ?? 0) > 0) return user?.picture;
return defaultImg;
}, [user, image, pubkey]);

View File

@ -102,7 +102,13 @@ const AvatarSection = ({
return (
<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">
{renderButtons()}
{!isMe && id && <FollowButton pubkey={id} />}
@ -112,14 +118,14 @@ const AvatarSection = ({
targets={
lnurl?.lnurl && id
? [
{
type: "lnurl",
value: lnurl.lnurl,
weight: 1,
name: user?.display_name || user?.name,
zap: { pubkey: id, anon: false }
} as ZapTarget,
]
{
type: "lnurl",
value: lnurl.lnurl,
weight: 1,
name: user?.display_name || user?.name,
zap: { pubkey: id, anon: false },
} as ZapTarget,
]
: undefined
}
show={showLnQr}

View File

@ -70,14 +70,14 @@ const ProfileDetails = ({
targets={
lnurl?.lnurl && id
? [
{
type: "lnurl",
value: lnurl?.lnurl,
weight: 1,
name: user?.display_name || user?.name,
zap: { pubkey: id, anon: false },
},
]
{
type: "lnurl",
value: lnurl?.lnurl,
weight: 1,
name: user?.display_name || user?.name,
zap: { pubkey: id, anon: false },
},
]
: undefined
}
show={showLnQr}