aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-12-29 17:42:11 -0300
committerSebastian <sebasjm@gmail.com>2023-12-29 17:42:11 -0300
commita37abd2472ac2d521e81838632050963157f00af (patch)
treeef50fbaa71b3b7f8f911a608b17ecb858d291b75 /packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
parent4d4ef3f6d42ce743d3735d4b4088b38c4042805f (diff)
fine tune dynamic forms
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx15
1 files changed, 7 insertions, 8 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
index bd25ce958..ce37fcf14 100644
--- a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
+++ b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
@@ -1,12 +1,11 @@
+import { AbsoluteTime, AmountJson, TranslatedString } from "@gnu-taler/taler-util";
+import { format } from "date-fns";
import { Fragment, VNode, h } from "preact";
-import { useState } from "preact/hooks";
-import { NiceForm } from "../NiceForm.js";
-import { FlexibleForm } from "../forms/index.js";
+import { NiceForm } from "../handlers/NiceForm.js";
+import { FlexibleForm } from "../handlers/forms.js";
import { UIFormField } from "../handlers/forms.js";
-import { AmlEvent } from "./CaseDetails.js";
import { AmlExchangeBackend } from "../types.js";
-import { AbsoluteTime, AmountJson, TranslatedString } from "@gnu-taler/taler-util";
-import { format } from "date-fns";
+import { AmlEvent } from "./CaseDetails.js";
export function ShowConsolidated({
history,
@@ -92,8 +91,7 @@ export function ShowConsolidated({
return (
<Fragment>
<h1 class="text-base font-semibold leading-7 text-black">
- Consolidated information
- {until.t_ms === "never"
+ Consolidated information {until.t_ms === "never"
? ""
: `after ${format(until.t_ms, "dd MMMM yyyy")}`}
</h1>
@@ -101,6 +99,7 @@ export function ShowConsolidated({
key={`${String(Date.now())}`}
form={form}
initial={cons}
+ readOnly
onUpdate={() => { }}
/>
</Fragment>