diff options
Diffstat (limited to 'packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx b/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx index 3af619c2d..43b88ccd8 100644 --- a/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx +++ b/packages/demobank-ui/src/pages/WithdrawalConfirmationQuestion.tsx @@ -26,8 +26,9 @@ import { } from "@gnu-taler/taler-util"; import { Attention, - ErrorLoading, Loading, + LocalNotificationBanner, + ShowInputErrorLabel, notifyInfo, useLocalNotification, useTranslationContext @@ -35,19 +36,16 @@ import { import { ComponentChildren, Fragment, VNode, h } from "preact"; import { useMemo, useState } from "preact/hooks"; import { mutate } from "swr"; -import { ShowInputErrorLabel } from "@gnu-taler/web-util/browser"; +import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js"; import { useBankCoreApiContext } from "../context/config.js"; +import { useWithdrawalDetails } from "../hooks/access.js"; +import { useBackendState } from "../hooks/backend.js"; import { usePreferences } from "../hooks/preferences.js"; -import { undefinedIfEmpty, withRuntimeErrorHandling } from "../utils.js"; +import { undefinedIfEmpty } from "../utils.js"; +import { LoginForm } from "./LoginForm.js"; import { RenderAmount } from "./PaytoWireTransferForm.js"; import { assertUnreachable } from "./WithdrawalOperationPage.js"; -import { LocalNotificationBanner } from "@gnu-taler/web-util/browser"; -import { useBackendState } from "../hooks/backend.js"; -import { useWithdrawalDetails } from "../hooks/access.js"; -import { OperationState } from "./OperationState/index.js"; import { OperationNotFound } from "./WithdrawalQRCode.js"; -import { ErrorLoadingWithDebug } from "../components/ErrorLoadingWithDebug.js"; -import { LoginForm } from "./LoginForm.js"; const logger = new Logger("WithdrawalConfirmationQuestion"); @@ -343,13 +341,13 @@ export function ShouldBeSameUser({ username, children }: { username: string, chi if (credentials.status === "loggedOut") { return <Fragment> <Attention type="info" title={i18n.str`Authentication required`} /> - <LoginForm currentUser={username} fixedUser/> + <LoginForm currentUser={username} fixedUser /> </Fragment> } if (credentials.username !== username) { return <Fragment> <Attention type="warning" title={i18n.str`This operation was created with other username`} /> - <LoginForm currentUser={username} fixedUser/> + <LoginForm currentUser={username} fixedUser /> </Fragment> } return <Fragment> |