diff --git a/public/nostrich_256.png b/public/nostrich_256.png index e26eeb87..b11ef85e 100644 Binary files a/public/nostrich_256.png and b/public/nostrich_256.png differ diff --git a/public/nostrich_512.png b/public/nostrich_512.png index 1d143051..82666697 100644 Binary files a/public/nostrich_512.png and b/public/nostrich_512.png differ diff --git a/src/Element/Note.tsx b/src/Element/Note.tsx index 084bf258..ade8d71d 100644 --- a/src/Element/Note.tsx +++ b/src/Element/Note.tsx @@ -1,5 +1,5 @@ import "./Note.css"; -import { useCallback, useMemo, useState, useLayoutEffect, ReactNode } from "react"; +import React, { useCallback, useMemo, useState, useLayoutEffect, ReactNode } from "react"; import { useNavigate, Link } from "react-router-dom"; import { useInView } from "react-intersection-observer"; import { useIntl, FormattedMessage } from "react-intl"; @@ -127,12 +127,12 @@ export default function Note(props: NoteProps) { } mentions.sort(a => (a.name.startsWith("npub") ? 1 : -1)); const othersLength = mentions.length - maxMentions; - const renderMention = (m: { link: React.ReactNode }, idx: number) => { + const renderMention = (m: { link: React.ReactNode; pk: string; name: string }, idx: number) => { return ( - <> + {idx > 0 && ", "} {m.link} - + ); }; const pubMentions = diff --git a/src/Element/Text.tsx b/src/Element/Text.tsx index fa87e2c4..a7ab2c4d 100644 --- a/src/Element/Text.tsx +++ b/src/Element/Text.tsx @@ -38,7 +38,7 @@ export default function Text({ content, tags, creator, users }: TextProps) { if (typeof f === "string") { return f.split(UrlRegex).map(a => { if (a.startsWith("http")) { - return ; + return ; } return a; }); @@ -60,7 +60,7 @@ export default function Text({ content, tags, creator, users }: TextProps) { if (ref) { switch (ref.Key) { case "p": { - return ; + return ; } case "e": { const eText = hexToBech32("note", ref.Event).substring(0, 12); @@ -71,7 +71,7 @@ export default function Text({ content, tags, creator, users }: TextProps) { ); } case "t": { - return ; + return ; } } } @@ -109,7 +109,7 @@ export default function Text({ content, tags, creator, users }: TextProps) { if (typeof f === "string") { return f.split(HashtagRegex).map(i => { if (i.toLowerCase().startsWith("#")) { - return ; + return ; } else { return i; } diff --git a/src/Pages/Login.tsx b/src/Pages/Login.tsx index 051db20f..b0d7c6ec 100644 --- a/src/Pages/Login.tsx +++ b/src/Pages/Login.tsx @@ -12,7 +12,7 @@ import { DefaultRelays, EmailRegex } from "Const"; import { bech32ToHex, unwrap } from "Util"; import { HexKey } from "Nostr"; import ZapButton from "Element/ZapButton"; -import useImgProxy from "Feed/ImgProxy"; +// import useImgProxy from "Feed/ImgProxy"; interface ArtworkEntry { name: string; @@ -51,7 +51,7 @@ export default function LoginPage() { const [key, setKey] = useState(""); const [error, setError] = useState(""); const [art, setArt] = useState(); - const { proxy } = useImgProxy(); + // const { proxy } = useImgProxy(); useEffect(() => { if (publicKey) { diff --git a/src/Pages/ProfilePage.tsx b/src/Pages/ProfilePage.tsx index 523af5e9..26bce38f 100644 --- a/src/Pages/ProfilePage.tsx +++ b/src/Pages/ProfilePage.tsx @@ -278,7 +278,7 @@ export default function ProfilePage() { } function renderTab(v: Tab) { - return ; + return ; } const w = window.document.querySelector(".page")?.clientWidth; @@ -293,6 +293,7 @@ export default function ProfilePage() {
{[ProfileTab.Notes, ProfileTab.Followers, ProfileTab.Follows, ProfileTab.Muted].map(renderTab)} + {optionalTabs.map(renderTab)} {isMe && renderTab(ProfileTab.Blocked)}