fix: lint warnings

This commit is contained in:
Alejandro Gomez 2023-01-17 00:20:15 +01:00
parent 432165d7af
commit 547b90e2b4
No known key found for this signature in database
GPG Key ID: 4DF39E566658C817
4 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ export default function Mention({ pubkey }: { pubkey: HexKey }) {
name = user!.name!;
}
return name;
}, [user]);
}, [user, pubkey]);
return <Link to={profileLink(pubkey)} onClick={(e) => e.stopPropagation()}>@{name}</Link>
}

View File

@ -1,7 +1,7 @@
import { useQuery } from "react-query";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faCheck, faSpinner, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
import { faSpinner, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
import './Nip05.css'
import { HexKey } from "../nostr";

View File

@ -28,7 +28,7 @@ export default function ProfileImage({ pubkey, subHeader, showUsername = true, c
name = user!.name!;
}
return name;
}, [user]);
}, [user, pubkey]);
return (
<div className={`pfp${className ? ` ${className}` : ""}`}>

View File

@ -3,7 +3,7 @@ import ReactMarkdown from "react-markdown";
import { TwitterTweetEmbed } from "react-twitter-embed";
import { UrlRegex, FileExtensionRegex, MentionRegex, InvoiceRegex, YoutubeUrlRegex, TweetUrlRegex, HashtagRegex } from "../Const";
import { eventLink, hexToBech32, profileLink } from "../Util";
import { eventLink, hexToBech32 } from "../Util";
import Invoice from "./Invoice";
import LazyImage from "./LazyImage";
import Hashtag from "./Hashtag";