chore: Update translations

This commit is contained in:
Kieran 2023-09-18 09:08:07 +00:00
parent 950b0dbf4d
commit 0b9c43cfed
2 changed files with 38 additions and 33 deletions

View File

@ -5,10 +5,10 @@ import { useMemo } from "react";
export function useStatusFeed(id?: string, leaveOpen = false) {
const sub = useMemo(() => {
if(!id) return null;
if (!id) return null;
const rb = new RequestBuilder(`statud:${id}`);
rb.withOptions({leaveOpen});
rb.withOptions({ leaveOpen });
rb.withFilter()
.kinds([30315 as EventKind])
.authors([id]);
@ -22,6 +22,7 @@ export function useStatusFeed(id?: string, leaveOpen = false) {
const music = status.data?.find(a => findTag(a, "d") === "music");
return {
general, music
}
general,
music,
};
}

View File

@ -256,13 +256,19 @@ export default function ProfilePage() {
const link = findTag(status.music, "r");
const cover = findTag(status.music, "cover");
const inner = () => {
return <div className="flex g8">
return (
<div className="flex g8">
{cover && <ProxyImg src={cover} size={40} />}
<small>🎵 {unwrap(status.music).content}</small>
</div>
}
);
};
if (link) {
return <a href={link} rel="noreferer" target="_blank" className="ext">{inner()}</a>;
return (
<a href={link} rel="noreferer" target="_blank" className="ext">
{inner()}
</a>
);
}
return inner();
}
@ -278,9 +284,7 @@ export default function ProfilePage() {
{user?.nip05 && <Nip05 nip05={user.nip05} pubkey={user.pubkey} />}
</div>
{showBadges && <BadgeList badges={badges} />}
{showStatus && <>
{musicStatus()}
</>}
{showStatus && <>{musicStatus()}</>}
<div className="link-section">
<Copy text={npub} />
{links()}