mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
remove npubx cash reference for now
This commit is contained in:
1 parent
c3b1adc375
commit
8bc8a41910
1 file changed
-7
@@ -1,7 +1,6 @@
|
|||||||
import { useMemo } from 'react';
|
import { useMemo } from 'react';
|
||||||
import { useNWC } from '@/hooks/useNWCContext';
|
import { useNWC } from '@/hooks/useNWCContext';
|
||||||
import { useCashu } from '@/hooks/useCashu';
|
import { useCashu } from '@/hooks/useCashu';
|
||||||
import { useNpubCash } from '@/hooks/useNpubCash';
|
|
||||||
import type { WebLNProvider } from '@webbtc/webln-types';
|
import type { WebLNProvider } from '@webbtc/webln-types';
|
||||||
|
|
||||||
export interface WalletStatus {
|
export interface WalletStatus {
|
||||||
@@ -13,15 +12,11 @@ export interface WalletStatus {
|
|||||||
hasCashu: boolean;
|
hasCashu: boolean;
|
||||||
cashuBalance: number;
|
cashuBalance: number;
|
||||||
isCashuInitialized: boolean;
|
isCashuInitialized: boolean;
|
||||||
// npub.cash integration
|
|
||||||
lightningAddress: string | null;
|
|
||||||
unclaimedSats: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export function useWallet() {
|
export function useWallet() {
|
||||||
const { connections, getActiveConnection } = useNWC();
|
const { connections, getActiveConnection } = useNWC();
|
||||||
const { balances, mints, isInitialized: isCashuInitialized } = useCashu();
|
const { balances, mints, isInitialized: isCashuInitialized } = useCashu();
|
||||||
const { lightningAddress, unclaimedAmount } = useNpubCash();
|
|
||||||
|
|
||||||
// Get the active connection directly - no memoization to avoid stale state
|
// Get the active connection directly - no memoization to avoid stale state
|
||||||
const activeNWC = getActiveConnection();
|
const activeNWC = getActiveConnection();
|
||||||
@@ -60,8 +55,6 @@ export function useWallet() {
|
|||||||
hasCashu,
|
hasCashu,
|
||||||
cashuBalance,
|
cashuBalance,
|
||||||
isCashuInitialized,
|
isCashuInitialized,
|
||||||
lightningAddress,
|
|
||||||
unclaimedSats: unclaimedAmount,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
|||||||
Reference in new issue
Block a user