diff options
author | Florian Dold <florian@dold.me> | 2023-09-21 19:43:59 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-21 19:43:59 +0200 |
commit | 6b63ecc49e4baafcd2833503418bb531025d8054 (patch) | |
tree | 4bdbbdecbd76e0703c955756c15de5688cce8a40 /packages/taler-wallet-webextension | |
parent | a99156ed22d21c88cddbfa5fb5908d093b32fbf8 (diff) |
-fix botched Balance->WalletBalance rename
Diffstat (limited to 'packages/taler-wallet-webextension')
3 files changed, 19 insertions, 15 deletions
diff --git a/packages/taler-wallet-webextension/src/components/BalanceTable.tsx b/packages/taler-wallet-webextension/src/components/BalanceTable.tsx index c2cef451b..d3733e6cc 100644 --- a/packages/taler-wallet-webextension/src/components/BalanceTable.tsx +++ b/packages/taler-wallet-webextension/src/components/BalanceTable.tsx @@ -14,15 +14,15 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Amounts, Balance } from "@gnu-taler/taler-util"; -import { h, VNode } from "preact"; +import { Amounts, WalletBalance } from "@gnu-taler/taler-util"; +import { VNode, h } from "preact"; import { TableWithRoundRows as TableWithRoundedRows } from "./styled/index.js"; export function BalanceTable({ balances, goToWalletHistory, }: { - balances: Balance[]; + balances: WalletBalance[]; goToWalletHistory: (currency: string) => void; }): VNode { return ( diff --git a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx index a8d2d6fcf..23614e290 100644 --- a/packages/taler-wallet-webextension/src/popup/BalancePage.tsx +++ b/packages/taler-wallet-webextension/src/popup/BalancePage.tsx @@ -14,25 +14,29 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Amounts, Balance, NotificationType } from "@gnu-taler/taler-util"; +import { + Amounts, + NotificationType, + WalletBalance, +} from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; -import { Fragment, h, VNode } from "preact"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; +import { Fragment, VNode, h } from "preact"; import { useEffect, useState } from "preact/hooks"; import { BalanceTable } from "../components/BalanceTable.js"; import { ErrorAlertView } from "../components/CurrentAlerts.js"; import { Loading } from "../components/Loading.js"; import { MultiActionButton } from "../components/MultiActionButton.js"; import { - alertFromError, ErrorAlert, + alertFromError, useAlertContext, } from "../context/alert.js"; import { useBackendContext } from "../context/backend.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; import { Button } from "../mui/Button.js"; import { ButtonHandler } from "../mui/handlers.js"; -import { compose, StateViewMap } from "../utils/index.js"; +import { StateViewMap, compose } from "../utils/index.js"; import { AddNewActionView } from "../wallet/AddNewActionView.js"; import { NoBalanceHelp } from "./NoBalanceHelp.js"; @@ -64,7 +68,7 @@ export namespace State { export interface Balances { status: "balance"; error: undefined; - balances: Balance[]; + balances: WalletBalance[]; addAction: ButtonHandler; goToWalletDeposit: (currency: string) => Promise<void>; goToWalletHistory: (currency: string) => Promise<void>; diff --git a/packages/taler-wallet-webextension/src/wallet/History.tsx b/packages/taler-wallet-webextension/src/wallet/History.tsx index 900218991..56d0ef7bd 100644 --- a/packages/taler-wallet-webextension/src/wallet/History.tsx +++ b/packages/taler-wallet-webextension/src/wallet/History.tsx @@ -17,26 +17,26 @@ import { AbsoluteTime, Amounts, - Balance, NotificationType, Transaction, + WalletBalance, } from "@gnu-taler/taler-util"; import { WalletApiOperation } from "@gnu-taler/taler-wallet-core"; -import { Fragment, h, VNode } from "preact"; +import { useTranslationContext } from "@gnu-taler/web-util/browser"; +import { Fragment, VNode, h } from "preact"; import { useEffect, useState } from "preact/hooks"; import { ErrorAlertView } from "../components/CurrentAlerts.js"; +import { HistoryItem } from "../components/HistoryItem.js"; import { Loading } from "../components/Loading.js"; +import { Time } from "../components/Time.js"; import { CenteredBoldText, CenteredText, DateSeparator, NiceSelect, } from "../components/styled/index.js"; -import { Time } from "../components/Time.js"; -import { HistoryItem } from "../components/HistoryItem.js"; import { alertFromError, useAlertContext } from "../context/alert.js"; import { useBackendContext } from "../context/backend.js"; -import { useTranslationContext } from "@gnu-taler/web-util/browser"; import { useAsyncAsHook } from "../hooks/useAsyncAsHook.js"; import { Button } from "../mui/Button.js"; import { NoBalanceHelp } from "../popup/NoBalanceHelp.js"; @@ -109,7 +109,7 @@ export function HistoryView({ goToWalletManualWithdraw: (currency?: string) => Promise<void>; defaultCurrency?: string; transactions: Transaction[]; - balances: Balance[]; + balances: WalletBalance[]; }): VNode { const { i18n } = useTranslationContext(); const { pushAlertOnError } = useAlertContext(); |