From 37f46f4d6b821d163c3e4db5c374b1120212ac74 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 11 Mar 2024 14:56:25 -0300 Subject: obs and cancel request, plus lint --- packages/bank-ui/src/components/Cashouts/views.tsx | 37 +++++++++++----------- 1 file changed, 19 insertions(+), 18 deletions(-) (limited to 'packages/bank-ui/src/components/Cashouts') diff --git a/packages/bank-ui/src/components/Cashouts/views.tsx b/packages/bank-ui/src/components/Cashouts/views.tsx index 7f16d5840..22b8d8c1b 100644 --- a/packages/bank-ui/src/components/Cashouts/views.tsx +++ b/packages/bank-ui/src/components/Cashouts/views.tsx @@ -17,7 +17,6 @@ import { AbsoluteTime, Amounts, - Duration, HttpStatusCode, TalerError, assertUnreachable, @@ -32,19 +31,19 @@ import { Fragment, VNode, h } from "preact"; import { useConversionInfo } from "../../hooks/regional.js"; import { RenderAmount } from "../../pages/PaytoWireTransferForm.js"; import { ErrorLoadingWithDebug } from "../ErrorLoadingWithDebug.js"; -import { State } from "./index.js"; import { Time } from "../Time.js"; +import { State } from "./index.js"; export function FailedView({ error }: State.Failed) { const { i18n } = useTranslationContext(); switch (error.case) { case HttpStatusCode.NotImplemented: { return ( - - Cashout should be enable by configuration and the conversion rate should be initialized with fee, ratio and rounding mode. + + + Cashout should be enable by configuration and the conversion rate + should be initialized with fee, ratio and rounding mode. + ); } @@ -69,11 +68,11 @@ export function ReadyView({ switch (resp.case) { case HttpStatusCode.NotImplemented: { return ( - - Cashout should be enable by configuration and the conversion rate should be initialized with fee, ratio and rounding mode. + + + Cashout should be enable by configuration and the conversion rate + should be initialized with fee, ratio and rounding mode. + ); } @@ -89,8 +88,8 @@ export function ReadyView({ cur.creation_time.t_s === "never" ? "" : format(cur.creation_time.t_s * 1000, "dd/MM/yyyy", { - locale: dateLocale, - }); + locale: dateLocale, + }); if (!prev[d]) { prev[d] = []; } @@ -156,9 +155,12 @@ export function ReadyView({ >
-
{ @@ -200,7 +202,6 @@ export function ReadyView({ - {item.subject} -- cgit v1.2.3