aboutsummaryrefslogtreecommitdiff
path: root/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx')
-rw-r--r--packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx14
1 files changed, 6 insertions, 8 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
index c1f7e02cb..1115414c0 100644
--- a/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
+++ b/packages/aml-backoffice-ui/src/pages/ShowConsolidated.tsx
@@ -16,6 +16,7 @@
import {
AbsoluteTime,
AmountJson,
+ TalerExchangeApi,
TranslatedString,
} from "@gnu-taler/taler-util";
import {
@@ -26,8 +27,6 @@ import {
} from "@gnu-taler/web-util/browser";
import { format } from "date-fns";
import { Fragment, VNode, h } from "preact";
-import { amlStateConverter } from "../utils/converter.js";
-import { AmlExchangeBackend } from "../utils/types.js";
import { AmlEvent } from "./CaseDetails.js";
export function ShowConsolidated({
@@ -73,19 +72,18 @@ export function ShowConsolidated({
props: {
label: i18n.str`State`,
name: "aml.state",
- converter: amlStateConverter,
choices: [
{
label: i18n.str`Frozen`,
- value: AmlExchangeBackend.AmlState.frozen,
+ value: TalerExchangeApi.AmlState.frozen,
},
{
label: i18n.str`Pending`,
- value: AmlExchangeBackend.AmlState.pending,
+ value: TalerExchangeApi.AmlState.pending,
},
{
label: i18n.str`Normal`,
- value: AmlExchangeBackend.AmlState.normal,
+ value: TalerExchangeApi.AmlState.normal,
},
],
},
@@ -135,7 +133,7 @@ export function ShowConsolidated({
interface Consolidated {
aml: {
- state: AmlExchangeBackend.AmlState;
+ state: TalerExchangeApi.AmlState;
threshold: AmountJson;
since: AbsoluteTime;
};
@@ -154,7 +152,7 @@ function getConsolidated(
): Consolidated {
const initial: Consolidated = {
aml: {
- state: AmlExchangeBackend.AmlState.normal,
+ state: TalerExchangeApi.AmlState.normal,
threshold: {
currency: "ARS",
value: 1000,