diff --git a/src/components/wallet/CashuWallet.tsx b/src/components/wallet/CashuWallet.tsx index ae05063..6e86dc3 100644 --- a/src/components/wallet/CashuWallet.tsx +++ b/src/components/wallet/CashuWallet.tsx @@ -11,6 +11,7 @@ import { useMintManager } from '@/hooks/cashu/useMintManager'; import { useWalletTransactions } from '@/hooks/cashu/useWalletTransactions'; import { useHistoryManager } from '@/hooks/cashu/useHistoryManager'; import { useBitcoinBalance, useBitcoinTransactionHistory, useBitcoinOperations } from '@/hooks/useBitcoinBalance'; +import { useNsecAccess } from '@/hooks/useNsecAccess'; import { nostrPubkeyToBitcoinAddress } from '@/lib/bitcoin'; import { QRModal } from '@/components/ui/qr-modal'; import { WalletHeader } from './WalletHeader'; @@ -45,6 +46,7 @@ export function CashuWallet() { const { toast } = useToast(); const { generateQRCode } = useQRCode(); const { copy: copyToClipboard } = useCopyToClipboard(); + const { hasNsecAccess } = useNsecAccess(); // Bitcoin hooks - including balance and transaction history const bitcoinAddress = user?.pubkey ? nostrPubkeyToBitcoinAddress(user.pubkey) : null; @@ -528,6 +530,7 @@ export function CashuWallet() { setBitcoinRecipient={setBitcoinRecipient} pendingBitcoinRecipient={pendingBitcoinRecipient} setPendingBitcoinRecipient={setPendingBitcoinRecipient} + hasNsecAccess={hasNsecAccess} bitcoinMaxAmount={bitcoinMaxAmount} onSendMax={() => handleSendMax(setBitcoinAmount)} /> @@ -583,6 +586,7 @@ export function CashuWallet() { setBitcoinRecipient={() => {}} pendingBitcoinRecipient={null} setPendingBitcoinRecipient={() => {}} + hasNsecAccess={hasNsecAccess} />