commit 11a66ee8d51f22b367b1090814321346dd3afd8f
parent c86e783708b7703651711bd5d4b65589ce5b7461
Author: Sebastian <sebasjm@gmail.com>
Date: Mon, 9 Dec 2024 17:18:17 -0300
fix broken build
Diffstat:
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/packages/taler-wallet-webextension/src/wallet/ManageAccount/state.ts b/packages/taler-wallet-webextension/src/wallet/ManageAccount/state.ts
@@ -15,9 +15,9 @@
*/
import {
- KnownBankAccountInfo,
parsePaytoUri,
stringifyPaytoUri,
+ WalletBankAccountInfo,
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { useTranslationContext } from "@gnu-taler/web-util/browser";
@@ -138,7 +138,7 @@ export function useComponentState({
accountByType[p.targetType].push(acc);
});
- async function deleteAccount(account: KnownBankAccountInfo): Promise<void> {
+ async function deleteAccount(account: WalletBankAccountInfo): Promise<void> {
const payto = account.paytoUri;
await api.wallet.call(WalletApiOperation.ForgetBankAccount, {
bankAccountId: account.bankAccountId,
diff --git a/packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx b/packages/taler-wallet-webextension/src/wallet/ManageAccount/views.tsx
@@ -16,7 +16,7 @@
import {
buildPayto,
- KnownBankAccountInfo,
+ WalletBankAccountInfo,
parsePaytoUri,
PaytoUriBitcoin,
PaytoUriIBAN,
@@ -45,8 +45,8 @@ type ComponentFormByAccountType = {
type ComponentListByAccountType = {
[type in AccountType]: (props: {
- list: KnownBankAccountInfo[];
- onDelete: (a: KnownBankAccountInfo) => Promise<void>;
+ list: WalletBankAccountInfo[];
+ onDelete: (a: WalletBankAccountInfo) => Promise<void>;
}) => VNode;
};
@@ -180,8 +180,8 @@ function IbanTable({
list,
onDelete,
}: {
- list: KnownBankAccountInfo[];
- onDelete: (ac: KnownBankAccountInfo) => void;
+ list: WalletBankAccountInfo[];
+ onDelete: (ac: WalletBankAccountInfo) => void;
}): VNode {
const { i18n } = useTranslationContext();
if (list.length === 0) return <Fragment />;
@@ -259,8 +259,8 @@ function TalerBankTable({
list,
onDelete,
}: {
- list: KnownBankAccountInfo[];
- onDelete: (ac: KnownBankAccountInfo) => void;
+ list: WalletBankAccountInfo[];
+ onDelete: (ac: WalletBankAccountInfo) => void;
}): VNode {
const { i18n } = useTranslationContext();
if (list.length === 0) return <Fragment />;
@@ -334,8 +334,8 @@ function BitcoinTable({
list,
onDelete,
}: {
- list: KnownBankAccountInfo[];
- onDelete: (ac: KnownBankAccountInfo) => void;
+ list: WalletBankAccountInfo[];
+ onDelete: (ac: WalletBankAccountInfo) => void;
}): VNode {
const { i18n } = useTranslationContext();
if (list.length === 0) return <Fragment />;