chore: Update translations
This commit is contained in:
parent
8137317bfe
commit
27a111466a
@ -20,14 +20,12 @@ const ConnectCashu = () => {
|
||||
throw new Error("Mint URL is required");
|
||||
}
|
||||
|
||||
const connection = new CashuWallet(
|
||||
{
|
||||
const connection = new CashuWallet({
|
||||
url: config,
|
||||
keys: {},
|
||||
proofs: [],
|
||||
keysets: [],
|
||||
},
|
||||
);
|
||||
});
|
||||
await connection.login();
|
||||
const info = await connection.getInfo();
|
||||
const newWallet = {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* eslint-disable max-lines */
|
||||
import { LNWallet,Sats, WalletInvoice } from "@snort/wallet";
|
||||
import { LNWallet, Sats, WalletInvoice } from "@snort/wallet";
|
||||
import classNames from "classnames";
|
||||
import { useEffect, useState } from "react";
|
||||
import { FormattedMessage, FormattedNumber, useIntl } from "react-intl";
|
||||
|
@ -155,7 +155,6 @@ export function useWallet() {
|
||||
return wallet;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds a wallet config for WebLN if detected
|
||||
*/
|
||||
|
@ -104,7 +104,7 @@ export type Sats = number;
|
||||
export type MilliSats = number;
|
||||
|
||||
export interface WalletEvents {
|
||||
change: (data?: string) => void
|
||||
change: (data?: string) => void;
|
||||
}
|
||||
|
||||
export type LNWallet = EventEmitter<WalletEvents> & {
|
||||
@ -122,7 +122,7 @@ export type LNWallet = EventEmitter<WalletEvents> & {
|
||||
canGetBalance: () => boolean;
|
||||
canCreateInvoice: () => boolean;
|
||||
canPayInvoice: () => boolean;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Load wallet by kind
|
||||
@ -152,4 +152,4 @@ export function loadWallet(kind: WalletKind, data: string | undefined) {
|
||||
}
|
||||
}
|
||||
|
||||
export { LNCWallet, WebLNWallet, LNDHubWallet, NostrConnectWallet, AlbyWallet, CashuWallet }
|
||||
export { LNCWallet, WebLNWallet, LNDHubWallet, NostrConnectWallet, AlbyWallet, CashuWallet };
|
||||
|
Loading…
x
Reference in New Issue
Block a user