Update page metadata

This commit is contained in:
2022-12-28 16:08:33 +00:00
parent 00b0cecf6c
commit d2a1b7f5ac
12 changed files with 14 additions and 40 deletions

View File

@ -1,6 +1,7 @@
import "./ProfileImage.css";
import { useNavigate } from "react-router-dom";
import useProfile from "../pages/feed/ProfileFeed";
import Nostrich from "../nostrich.jpg";
export default function ProfileImage(props) {
const pubKey = props.pubKey;
@ -10,7 +11,7 @@ export default function ProfileImage(props) {
return (
<div className="pfp">
<img src={user?.picture} onClick={() => navigate(`/p/${pubKey}`)} />
<img src={user?.picture ?? Nostrich} onClick={() => navigate(`/p/${pubKey}`)} />
<div>
{user?.name ?? pubKey.substring(0, 8)}
{subHeader}

View File

@ -1,4 +1,3 @@
import { useSelector } from "react-redux";
import Connection from "./Connection";
/**

BIN
src/nostrich.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

View File

@ -6,6 +6,7 @@ import { useContext, useEffect, useState } from "react";
import Event from "../nostr/Event";
import { NostrContext } from "..";
import { resetProfile } from "../state/Users";
import Nostrich from "../nostrich.jpg";
export default function ProfilePage() {
const system = useContext(NostrContext);
@ -27,7 +28,7 @@ export default function ProfilePage() {
useEffect(() => {
if (user) {
setName(user.name ?? "");
setPicture(user.picture ?? "");
setPicture(user.picture ?? Nostrich);
setAbout(user.about ?? "");
setWebsite(user.website ?? "");
setNip05(user.nip05 ?? "");