refactor: extract wallet system

This commit is contained in:
2024-04-11 13:26:50 +01:00
parent d1095847d8
commit 8137317bfe
33 changed files with 5252 additions and 4916 deletions

View File

@ -1,5 +1,6 @@
import { LNURL } from "@snort/shared";
import { NostrEvent } from "@snort/system";
import { WalletInvoiceState } from "@snort/wallet";
import { FormattedMessage, FormattedNumber } from "react-intl";
import { UserCache } from "@/Cache";
@ -10,7 +11,6 @@ import useEventPublisher from "@/Hooks/useEventPublisher";
import useLogin from "@/Hooks/useLogin";
import { dedupe, findTag, getDisplayName, hexToBech32 } from "@/Utils";
import { useWallet } from "@/Wallet";
import { WalletInvoiceState } from "@/Wallet";
export default function PubkeyList({ ev, className }: { ev: NostrEvent; className?: string }) {
const wallet = useWallet();