bug: proxy banners

This commit is contained in:
Kieran 2023-01-31 15:53:47 +00:00
parent 0fb387e35c
commit 08acab4831
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,8 @@
import useImgProxy from "Feed/ImgProxy";
import { useEffect, useState } from "react";
export const ProxyImg = ({ src, ...rest }: { src?: string }) => {
export const ProxyImg = (props: any) => {
const { src, ...rest } = props;
const [url, setUrl] = useState<string>();
const { proxy } = useImgProxy();

View File

@ -29,6 +29,7 @@ import { HexKey } from "Nostr";
import FollowsYou from "Element/FollowsYou"
import QrCode from "Element/QrCode";
import Modal from "Element/Modal";
import { ProxyImg } from "Element/ProxyImg"
enum ProfileTab {
Notes = "Notes",
@ -193,7 +194,7 @@ export default function ProfilePage() {
return (
<>
<div className="profile flex">
{user?.banner && <img alt="banner" className="banner" src={user.banner} />}
{user?.banner && <ProxyImg alt="banner" className="banner" src={user.banner} />}
<div className="profile-wrapper flex">
{avatar()}
{userDetails()}