fix more warnings, store transformed text in LRUCache of 1000

This commit is contained in:
Martti Malmi
2024-01-10 19:54:01 +02:00
parent 8e37e0fbed
commit e6a42db658
18 changed files with 203 additions and 182 deletions

View File

@ -3,12 +3,12 @@ import "./Nip05.css";
import { HexKey } from "@snort/system";
import { useUserProfile } from "@snort/system-react";
export function useIsVerified(pubkey?: HexKey, bypassCheck?: boolean) {
function useIsVerified(pubkey?: HexKey, bypassCheck?: boolean) {
const profile = useUserProfile(pubkey);
return { isVerified: bypassCheck || profile?.isNostrAddressValid };
}
export interface Nip05Params {
interface Nip05Params {
nip05?: string;
pubkey: HexKey;
verifyNip?: boolean;