commit 340d20d817ce63e5085d242d220005b6ed47ee91
parent 84767cbffd2e535cb750f3e89fccd0ea5dac8488
Author: Florian Dold <florian@dold.me>
Date: Mon, 10 Mar 2025 13:26:55 +0100
-fix typo
Diffstat:
4 files changed, 35 insertions(+), 37 deletions(-)
diff --git a/packages/kyc-ui/src/Routing.tsx b/packages/kyc-ui/src/Routing.tsx
@@ -22,10 +22,10 @@ import {
} from "@gnu-taler/web-util/browser";
import { Fragment, VNode, h } from "preact";
-import { AccessToken, assertUnreachable } from "@gnu-taler/taler-util";
-import { useEffect, useErrorBoundary } from "preact/hooks";
+import { assertUnreachable } from "@gnu-taler/taler-util";
+import { useErrorBoundary } from "preact/hooks";
import { useSessionState } from "./hooks/session.js";
-import { CallengeCompleted } from "./pages/CallengeCompleted.js";
+import { ChallengeCompleted } from "./pages/ChallengeCompleted.js";
import { Frame } from "./pages/Frame.js";
import { Start } from "./pages/Start.js";
import { TriggerForms } from "./pages/TriggerForms.js";
@@ -97,7 +97,7 @@ function PublicRounting(): VNode {
}
case "completed": {
- return <CallengeCompleted />;
+ return <ChallengeCompleted />;
}
case "triggerKyc": {
return (
diff --git a/packages/kyc-ui/src/context/notifier.ts b/packages/kyc-ui/src/context/notifier.ts
@@ -14,10 +14,8 @@
GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
*/
-import { codecForUIForms, UiForms } from "@gnu-taler/web-util/browser";
import { ComponentChildren, createContext, h, VNode } from "preact";
import { useContext } from "preact/hooks";
-import { listeners } from "process";
/**
*
diff --git a/packages/kyc-ui/src/pages/CallengeCompleted.tsx b/packages/kyc-ui/src/pages/CallengeCompleted.tsx
@@ -1,31 +0,0 @@
-/*
- This file is part of GNU Taler
- (C) 2022-2024 Taler Systems S.A.
-
- GNU Taler is free software; you can redistribute it and/or modify it under the
- terms of the GNU General Public License as published by the Free Software
- Foundation; either version 3, or (at your option) any later version.
-
- GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
- A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License along with
- GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
- */
-import { Attention, useTranslationContext } from "@gnu-taler/web-util/browser";
-import { Fragment, VNode, h } from "preact";
-
-const TALER_SCREEN_ID = 101;
-
-export function CallengeCompleted(): VNode {
- const { i18n } = useTranslationContext();
-
- return (
- <div class="m-4">
- <Attention title={i18n.str`Kyc completed`} type="success">
- <i18n.Translate>You will be redirected to nowhere</i18n.Translate>
- </Attention>
- </div>
- );
-}
diff --git a/packages/kyc-ui/src/pages/ChallengeCompleted.tsx b/packages/kyc-ui/src/pages/ChallengeCompleted.tsx
@@ -0,0 +1,31 @@
+/*
+ This file is part of GNU Taler
+ (C) 2022-2024 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+import { Attention, useTranslationContext } from "@gnu-taler/web-util/browser";
+import { Fragment, VNode, h } from "preact";
+
+const TALER_SCREEN_ID = 101;
+
+export function ChallengeCompleted(): VNode {
+ const { i18n } = useTranslationContext();
+
+ return (
+ <div class="m-4">
+ <Attention title={i18n.str`Kyc completed`} type="success">
+ <i18n.Translate>You will be redirected to nowhere</i18n.Translate>
+ </Attention>
+ </div>
+ );
+}