commit a7f2e37c0b7a978f3b618ae263730d31906dc906
parent 16817538a3c6a40195ed69bd9a174feb106b0a32
Author: Sebastian <sebasjm@gmail.com>
Date: Tue, 3 Sep 2024 18:51:39 -0300
remove deprecated
Diffstat:
2 files changed, 0 insertions(+), 40 deletions(-)
diff --git a/packages/kyc-ui/src/hooks/kyc.ts b/packages/kyc-ui/src/hooks/kyc.ts
@@ -20,7 +20,6 @@ import {
} from "@gnu-taler/taler-util";
import { useExchangeApiContext } from "@gnu-taler/web-util/browser";
import _useSWR, { SWRHook, mutate } from "swr";
-import { SessionId } from "./session.js";
const useSWR = _useSWR as unknown as SWRHook;
export function revalidateKycInfo() {
diff --git a/packages/kyc-ui/src/pages/SaveToken.tsx b/packages/kyc-ui/src/pages/SaveToken.tsx
@@ -1,39 +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 { AccessToken } from "@gnu-taler/taler-util";
-import { Loading } from "@gnu-taler/web-util/browser";
-import { h, VNode } from "preact";
-import { useSessionState } from "../hooks/session.js";
-import { useEffect } from "preact/hooks";
-
-interface Props {
- token: AccessToken;
- onStarted: () => void;
-}
-export function SaveToken({ token, onStarted }: Props): VNode {
- const { start } = useSessionState();
- useEffect(() => {
- if (token) {
- start({
- accessToken: token,
- });
- onStarted();
- }
- }, [token]);
-
- return <Loading />;
-}