forked from Kieran/snort
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, {
|
||||
headers: {
|
||||
...Object.fromEntries(rsp.headers.entries()),
|
||||
"cache-control": "public, max-age=60"
|
||||
"cache-control": "public, max-age=60",
|
||||
},
|
||||
});
|
||||
}
|
||||
|
@ -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]);
|
||||
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user