diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-21 08:15:21 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-21 08:16:13 -0300 |
commit | 7c8c7692fb179e049ca80087d3573dc9b256fcdb (patch) | |
tree | 28a37dc3292798e7a04bf999a1849b1e9dbc10ae /packages/aml-backoffice-ui/src/forms | |
parent | 342df60abe6d8b8b0c51e79cf13c7edcca58d9f9 (diff) |
fix compile error
Diffstat (limited to 'packages/aml-backoffice-ui/src/forms')
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/902_15e.ts | 8 | ||||
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/index.ts | 2 | ||||
-rw-r--r-- | packages/aml-backoffice-ui/src/forms/simplest.ts | 2 |
3 files changed, 3 insertions, 9 deletions
diff --git a/packages/aml-backoffice-ui/src/forms/902_15e.ts b/packages/aml-backoffice-ui/src/forms/902_15e.ts index 0d90d82ee..6689896ab 100644 --- a/packages/aml-backoffice-ui/src/forms/902_15e.ts +++ b/packages/aml-backoffice-ui/src/forms/902_15e.ts @@ -1,8 +1,7 @@ import { AbsoluteTime, TranslatedString } from "@gnu-taler/taler-util"; -import { FormState } from "../handlers/FormProvider.js"; import { BaseForm } from "../pages/AntiMoneyLaunderingForm.js"; import { FlexibleForm } from "./index.js"; -import { Simplest, resolutionSection } from "./simplest.js"; +import { resolutionSection } from "./simplest.js"; export const v1 = (current: BaseForm): FlexibleForm<Form902_15.Form> => ({ design: [ @@ -152,11 +151,6 @@ export const v1 = (current: BaseForm): FlexibleForm<Form902_15.Form> => ({ }, resolutionSection(current), ], - behavior: function formBehavior( - v: Partial<Form902_15.Form>, - ): FormState<Form902_15.Form> { - return {}; - }, }); namespace Form902_15 { diff --git a/packages/aml-backoffice-ui/src/forms/index.ts b/packages/aml-backoffice-ui/src/forms/index.ts index 8feef0c49..74407ed82 100644 --- a/packages/aml-backoffice-ui/src/forms/index.ts +++ b/packages/aml-backoffice-ui/src/forms/index.ts @@ -4,7 +4,7 @@ import { DoubleColumnForm } from "../handlers/forms.js"; export interface FlexibleForm<T extends object> { design: DoubleColumnForm; - behavior: (form: Partial<T>) => FormState<T>; + behavior?: (form: Partial<T>) => FormState<T>; } export const languageList = [ diff --git a/packages/aml-backoffice-ui/src/forms/simplest.ts b/packages/aml-backoffice-ui/src/forms/simplest.ts index 5acb58201..778d20b75 100644 --- a/packages/aml-backoffice-ui/src/forms/simplest.ts +++ b/packages/aml-backoffice-ui/src/forms/simplest.ts @@ -33,7 +33,7 @@ export const v1 = (current: BaseForm): FlexibleForm<Simplest.Form> => ({ ): FormState<Simplest.Form> { return { comment: { - help: ((v.comment?.length ?? 0) > 10 ? "too long" : "") as TranslatedString + help: ((v.comment?.length ?? 0) > 100 ? "keep it short" : "") as TranslatedString }, threshold: { disabled: v.state === AmlExchangeBackend.AmlState.frozen, |