aboutsummaryrefslogtreecommitdiff
path: root/packages/demobank-ui/src/components/Cashouts/views.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/demobank-ui/src/components/Cashouts/views.tsx')
-rw-r--r--packages/demobank-ui/src/components/Cashouts/views.tsx41
1 files changed, 21 insertions, 20 deletions
diff --git a/packages/demobank-ui/src/components/Cashouts/views.tsx b/packages/demobank-ui/src/components/Cashouts/views.tsx
index 59bb4a16b..115a2e014 100644
--- a/packages/demobank-ui/src/components/Cashouts/views.tsx
+++ b/packages/demobank-ui/src/components/Cashouts/views.tsx
@@ -21,6 +21,7 @@ import { Fragment, h, VNode } from "preact";
import { RenderAmount } from "../../pages/PaytoWireTransferForm.js";
import { State } from "./index.js";
import { useConversionInfo } from "../../hooks/circuit.js";
+import { ErrorLoadingWithDebug } from "../ErrorLoadingWithDebug.js";
export function LoadingUriView({ error }: State.LoadingUriError): VNode {
const { i18n } = useTranslationContext();
@@ -57,7 +58,7 @@ export function ReadyView({ cashouts, onSelected }: State.Ready): VNode {
return <Loading />
}
if (resp instanceof TalerError) {
- return <ErrorLoading error={resp} />
+ return <ErrorLoadingWithDebug error={resp} />
}
if (!cashouts.length) return <div />
const txByDate = cashouts.reduce((prev, cur) => {
@@ -105,9 +106,9 @@ export function ReadyView({ cashouts, onSelected }: State.Ready): VNode {
return (<tr key={idx} class="border-b border-gray-200 hover:bg-gray-200 last:border-none">
<td onClick={(e) => {
- e.preventDefault();
- onSelected(item.id);
- }} class="relative py-2 pl-2 pr-2 text-sm ">
+ e.preventDefault();
+ onSelected(item.id);
+ }} class="relative py-2 pl-2 pr-2 text-sm ">
<div class="font-medium text-gray-900">{creationTime}</div>
{/* <dl class="font-normal sm:hidden">
<dt class="sr-only sm:hidden"><i18n.Translate>Amount</i18n.Translate></dt>
@@ -132,26 +133,26 @@ export function ReadyView({ cashouts, onSelected }: State.Ready): VNode {
</dl> */}
</td>
<td onClick={(e) => {
- e.preventDefault();
- onSelected(item.id);
- }}class="hidden sm:table-cell px-3 py-3.5 text-sm text-gray-500 cursor-pointer">{confirmationTime}</td>
+ e.preventDefault();
+ onSelected(item.id);
+ }} class="hidden sm:table-cell px-3 py-3.5 text-sm text-gray-500 cursor-pointer">{confirmationTime}</td>
<td onClick={(e) => {
- e.preventDefault();
- onSelected(item.id);
- }}class="hidden sm:table-cell px-3 py-3.5 text-sm text-red-600 cursor-pointer"><RenderAmount value={Amounts.parseOrThrow(item.amount_debit)} spec={resp.body.regional_currency_specification} /></td>
+ e.preventDefault();
+ onSelected(item.id);
+ }} class="hidden sm:table-cell px-3 py-3.5 text-sm text-red-600 cursor-pointer"><RenderAmount value={Amounts.parseOrThrow(item.amount_debit)} spec={resp.body.regional_currency_specification} /></td>
<td onClick={(e) => {
- e.preventDefault();
- onSelected(item.id);
- }}class="hidden sm:table-cell px-3 py-3.5 text-sm text-green-600 cursor-pointer"><RenderAmount value={Amounts.parseOrThrow(item.amount_credit)} spec={resp.body.fiat_currency_specification} /></td>
+ e.preventDefault();
+ onSelected(item.id);
+ }} class="hidden sm:table-cell px-3 py-3.5 text-sm text-green-600 cursor-pointer"><RenderAmount value={Amounts.parseOrThrow(item.amount_credit)} spec={resp.body.fiat_currency_specification} /></td>
- <td onClick={(e) => {
- e.preventDefault();
- onSelected(item.id);
- }}class="hidden sm:table-cell px-3 py-3.5 text-sm text-gray-500 cursor-pointer">{item.status}</td>
<td onClick={(e) => {
- e.preventDefault();
- onSelected(item.id);
- }} class="hidden sm:table-cell px-3 py-3.5 text-sm text-gray-500 break-all min-w-md">
+ e.preventDefault();
+ onSelected(item.id);
+ }} class="hidden sm:table-cell px-3 py-3.5 text-sm text-gray-500 cursor-pointer">{item.status}</td>
+ <td onClick={(e) => {
+ e.preventDefault();
+ onSelected(item.id);
+ }} class="hidden sm:table-cell px-3 py-3.5 text-sm text-gray-500 break-all min-w-md">
{item.subject}
</td>
</tr>)