remove unintended change

This commit is contained in:
Alejandro Gomez 2023-01-16 18:39:30 +01:00
parent 7e67a5489c
commit 57e6580795
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import { CSSProperties } from "react";
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 backgroundImage = `url(${avatarUrl})`
const domain = user?.nip05 && user.nip05.split('@')[1]

View File

@ -150,7 +150,7 @@ function transformLi({ body, tags, users }: TextFragment) {
function transformParagraph({ body, tags, users }: TextFragment) {
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 <>{fragments}</>

View File

@ -38,7 +38,7 @@ export default function ProfilePage() {
const isMe = loginPubKey === id;
const [showLnQr, setShowLnQr] = useState<boolean>(false);
const [tab, setTab] = useState(ProfileTab.Notes);
const about = Text({ content: user?.about })
const about = Text({ content: user?.about || '', tags: [], users: new Map() })
useEffect(() => {
setTab(ProfileTab.Notes);