remove unintended change
This commit is contained in:
parent
7e67a5489c
commit
57e6580795
@ -7,7 +7,7 @@ import { CSSProperties } from "react";
|
|||||||
import type { UserMetadata } from "../nostr";
|
import type { UserMetadata } from "../nostr";
|
||||||
|
|
||||||
|
|
||||||
const Avatar = ({ user, ...rest }: { user?: UserMetadata }) => {
|
const Avatar = ({ user, ...rest }: { user?: UserMetadata, onClick?: () => void}) => {
|
||||||
const avatarUrl = (user?.picture?.length ?? 0) === 0 ? Nostrich : user?.picture
|
const avatarUrl = (user?.picture?.length ?? 0) === 0 ? Nostrich : user?.picture
|
||||||
const backgroundImage = `url(${avatarUrl})`
|
const backgroundImage = `url(${avatarUrl})`
|
||||||
const domain = user?.nip05 && user.nip05.split('@')[1]
|
const domain = user?.nip05 && user.nip05.split('@')[1]
|
||||||
|
@ -150,7 +150,7 @@ function transformLi({ body, tags, users }: TextFragment) {
|
|||||||
|
|
||||||
function transformParagraph({ body, tags, users }: TextFragment) {
|
function transformParagraph({ body, tags, users }: TextFragment) {
|
||||||
const fragments = transformText({ body, tags, users })
|
const fragments = transformText({ body, tags, users })
|
||||||
if (fragments.every(f => typeof f === 'string') && fragments.length > 1) {
|
if (fragments.every(f => typeof f === 'string')) {
|
||||||
return <p>{fragments}</p>
|
return <p>{fragments}</p>
|
||||||
}
|
}
|
||||||
return <>{fragments}</>
|
return <>{fragments}</>
|
||||||
|
@ -38,7 +38,7 @@ export default function ProfilePage() {
|
|||||||
const isMe = loginPubKey === id;
|
const isMe = loginPubKey === id;
|
||||||
const [showLnQr, setShowLnQr] = useState<boolean>(false);
|
const [showLnQr, setShowLnQr] = useState<boolean>(false);
|
||||||
const [tab, setTab] = useState(ProfileTab.Notes);
|
const [tab, setTab] = useState(ProfileTab.Notes);
|
||||||
const about = Text({ content: user?.about })
|
const about = Text({ content: user?.about || '', tags: [], users: new Map() })
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
setTab(ProfileTab.Notes);
|
setTab(ProfileTab.Notes);
|
||||||
|
Loading…
Reference in New Issue
Block a user