diff options
author | Sebastian <sebasjm@gmail.com> | 2022-12-07 15:44:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-12-07 16:08:19 -0300 |
commit | d2554bedf3984ba4eb3a52b5649daa9c7c686c39 (patch) | |
tree | 237e020c1ef78634a5a288df4420f541bf706a1b /packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx | |
parent | 9112655ef5b68245f934ad25d2c8b9fa19a0f7bd (diff) | |
download | wallet-core-d2554bedf3984ba4eb3a52b5649daa9c7c686c39.tar.gz wallet-core-d2554bedf3984ba4eb3a52b5649daa9c7c686c39.tar.bz2 wallet-core-d2554bedf3984ba4eb3a52b5649daa9c7c686c39.zip |
no-fix: remove 'any' and login status is taken from backend
Diffstat (limited to 'packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx b/packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx index da4ccc45e..848a9c45c 100644 --- a/packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx +++ b/packages/demobank-ui/src/pages/home/TalerWithdrawalQRCode.tsx @@ -1,5 +1,6 @@ import { Fragment, h, VNode } from "preact"; import useSWR from "swr"; +import { useBackendContext } from "../../context/backend.js"; import { PageStateType, usePageContext } from "../../context/pageState.js"; import { useTranslationContext } from "../../context/translation.js"; import { QrCodeSection } from "./QrCodeSection.js"; @@ -10,10 +11,15 @@ import { TalerWithdrawalConfirmationQuestion } from "./TalerWithdrawalConfirmati * permit the passing of exchange and reserve details to * the bank. Poll the backend until such operation is done. */ -export function TalerWithdrawalQRCode(Props: any): VNode { +export function TalerWithdrawalQRCode({ + withdrawalId, + talerWithdrawUri, +}: { + withdrawalId: string; + talerWithdrawUri: string; +}): VNode { // turns true when the wallet POSTed the reserve details: const { pageState, pageStateSetter } = usePageContext(); - const { withdrawalId, talerWithdrawUri, backendState } = Props; const { i18n } = useTranslationContext(); const abortButton = ( <a @@ -93,5 +99,5 @@ export function TalerWithdrawalQRCode(Props: any): VNode { * Wallet POSTed the withdrawal details! Ask the * user to authorize the operation (here CAPTCHA). */ - return <TalerWithdrawalConfirmationQuestion backendState={backendState} />; + return <TalerWithdrawalConfirmationQuestion />; } |