mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
fixed send on-chain
This commit is contained in:
1 parent
9e29d18a70
commit
97613fc5b2
1 file changed
+4
@@ -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}
|
||||
/>
|
||||
</div>
|
||||
</DrawerContent>
|
||||
|
||||
Reference in new issue
Block a user