aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/pages/WireTransfer.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/pages/WireTransfer.tsx')
-rw-r--r--packages/demobank-ui/src/pages/WireTransfer.tsx12
1 files changed, 5 insertions, 7 deletions
diff --git a/packages/demobank-ui/src/pages/WireTransfer.tsx b/packages/demobank-ui/src/pages/WireTransfer.tsx
index 88bdc70a6..7648df482 100644
--- a/packages/demobank-ui/src/pages/WireTransfer.tsx
+++ b/packages/demobank-ui/src/pages/WireTransfer.tsx
@@ -1,14 +1,12 @@
import { Amounts, TalerError } from "@gnu-taler/taler-util";
-import { notifyInfo, useTranslationContext } from "@gnu-taler/web-util/browser";
+import { Loading, notifyInfo, useTranslationContext } from "@gnu-taler/web-util/browser";
import { Fragment, VNode, h } from "preact";
-import { ErrorLoading } from "@gnu-taler/web-util/browser";
-import { Loading } from "@gnu-taler/web-util/browser";
+import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js";
import { useAccountDetails } from "../hooks/access.js";
-import { assertUnreachable } from "./WithdrawalOperationPage.js";
+import { useBackendState } from "../hooks/backend.js";
import { LoginForm } from "./LoginForm.js";
import { PaytoWireTransferForm } from "./PaytoWireTransferForm.js";
-import { useBackendState } from "../hooks/backend.js";
-import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js";
+import { assertUnreachable } from "./WithdrawalOperationPage.js";
export function WireTransfer({ toAccount, onRegister, onCancel, onSuccess }: { onSuccess?: () => void; toAccount?: string, onCancel?: () => void, onRegister?: () => void }): VNode {
const { i18n } = useTranslationContext();
@@ -24,7 +22,7 @@ export function WireTransfer({ toAccount, onRegister, onCancel, onSuccess }: { o
}
if (result.type === "fail") {
switch (result.case) {
- case "unauthorized": return <LoginForm currentUser={account}/>
+ case "unauthorized": return <LoginForm currentUser={account} />
case "not-found": return <LoginForm currentUser={account} />
default: assertUnreachable(result)
}