From e38be8d8ec1bdf1c854a2391ae9f4641cb69a249 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 20 Jan 2022 13:12:28 -0300 Subject: using loadingerror --- .../taler-wallet-webextension/src/cta/Withdraw.tsx | 33 +++++++++------------- 1 file changed, 13 insertions(+), 20 deletions(-) (limited to 'packages/taler-wallet-webextension/src/cta/Withdraw.tsx') diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx index 0a06bd577..a4ee640ca 100644 --- a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx +++ b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx @@ -30,6 +30,8 @@ import { } from "@gnu-taler/taler-util"; import { Fragment, h, VNode } from "preact"; import { useState } from "preact/hooks"; +import { Loading } from "../components/Loading"; +import { LoadingError } from "../components/LoadingError"; import { LogoHeader } from "../components/LogoHeader"; import { Part } from "../components/Part"; import { SelectList } from "../components/SelectList"; @@ -237,19 +239,14 @@ export function WithdrawPageWithParsedURI({ }); if (!detailsHook) { - return ( - - Getting withdrawal details. - - ); + return ; } if (detailsHook.hasError) { return ( - - - Problems getting details: {detailsHook.message} - - + ); } @@ -315,21 +312,17 @@ export function WithdrawPage({ talerWithdrawUri }: Props): VNode { ); } if (!uriInfoHook) { - return ( - - Loading... - - ); + return ; } if (uriInfoHook.hasError) { return ( - - - This URI is not valid anymore: {uriInfoHook.message} - - + ); } + return (