diff options
Diffstat (limited to 'packages/bank-ui/src/components')
4 files changed, 17 insertions, 19 deletions
diff --git a/packages/bank-ui/src/components/Cashouts/index.ts b/packages/bank-ui/src/components/Cashouts/index.ts index 2c6bf681c..99a946865 100644 --- a/packages/bank-ui/src/components/Cashouts/index.ts +++ b/packages/bank-ui/src/components/Cashouts/index.ts @@ -14,7 +14,7 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Loading, utils } from "@gnu-taler/web-util/browser"; +import { Loading, RouteDefinition, utils } from "@gnu-taler/web-util/browser"; import { AbsoluteTime, AmountJson, @@ -25,7 +25,6 @@ import { import { ErrorLoadingWithDebug } from "../ErrorLoadingWithDebug.js"; import { useComponentState } from "./state.js"; import { FailedView, ReadyView } from "./views.js"; -import { RouteDefinition } from "../../route.js"; export interface Props { account: string; diff --git a/packages/bank-ui/src/components/Cashouts/test.ts b/packages/bank-ui/src/components/Cashouts/test.ts index 4bd6b5eac..4ed0d7c11 100644 --- a/packages/bank-ui/src/components/Cashouts/test.ts +++ b/packages/bank-ui/src/components/Cashouts/test.ts @@ -24,7 +24,7 @@ import { SwrMockEnvironment } from "@gnu-taler/web-util/testing"; import { expect } from "chai"; import { Props } from "./index.js"; import { useComponentState } from "./state.js"; -import { buildNullRoutDefinition } from "../../route.js"; +import { buildNullRoutDefinition } from "@gnu-taler/web-util/browser"; describe("Cashout states", () => { it.skip("should query backend and render transactions", async () => { diff --git a/packages/bank-ui/src/components/Transactions/index.ts b/packages/bank-ui/src/components/Transactions/index.ts index 4cad6f306..2f68b2ded 100644 --- a/packages/bank-ui/src/components/Transactions/index.ts +++ b/packages/bank-ui/src/components/Transactions/index.ts @@ -19,17 +19,17 @@ import { Loading, utils } from "@gnu-taler/web-util/browser"; import { ErrorLoadingWithDebug } from "../ErrorLoadingWithDebug.js"; import { useComponentState } from "./state.js"; import { ReadyView } from "./views.js"; -import { RouteDefinition } from "../../route.js"; +import { RouteDefinition } from "@gnu-taler/web-util/browser"; export interface Props { account: string; routeCreateWireTransfer: - | RouteDefinition<{ - account?: string; - subject?: string; - amount?: string; - }> - | undefined; + | RouteDefinition<{ + account?: string; + subject?: string; + amount?: string; + }> + | undefined; } export type State = State.Loading | State.LoadingUriError | State.Ready; @@ -52,12 +52,12 @@ export namespace State { status: "ready"; error: undefined; routeCreateWireTransfer: - | RouteDefinition<{ - account?: string; - subject?: string; - amount?: string; - }> - | undefined; + | RouteDefinition<{ + account?: string; + subject?: string; + amount?: string; + }> + | undefined; transactions: Transaction[]; onGoStart?: () => void; onGoNext?: () => void; diff --git a/packages/bank-ui/src/components/Transactions/views.tsx b/packages/bank-ui/src/components/Transactions/views.tsx index 4397651e2..ebce00a2a 100644 --- a/packages/bank-ui/src/components/Transactions/views.tsx +++ b/packages/bank-ui/src/components/Transactions/views.tsx @@ -14,10 +14,9 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Attention, useTranslationContext } from "@gnu-taler/web-util/browser"; +import { Attention, useBankCoreApiContext, useTranslationContext } from "@gnu-taler/web-util/browser"; import { format } from "date-fns"; import { Fragment, VNode, h } from "preact"; -import { useBankCoreApiContext } from "../../context/config.js"; import { RenderAmount } from "../../pages/PaytoWireTransferForm.js"; import { Time } from "../Time.js"; import { State } from "./index.js"; @@ -120,7 +119,7 @@ export function ReadyView({ <Time format="HH:mm:ss" timestamp={item.when} - // relative={Duration.fromSpec({ days: 1 })} + // relative={Duration.fromSpec({ days: 1 })} /> </div> <dl class="font-normal sm:hidden"> |