diff options
author | Sebastian <sebasjm@gmail.com> | 2024-09-06 13:54:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-09-06 13:54:58 -0300 |
commit | c2efc802b2789cb47a6b0a54fc1672b98ee37db2 (patch) | |
tree | de5535184952ba20b77dd481ae152a077be8b547 /packages/kyc-ui | |
parent | d671ef0f4cfa7d17b43b265501ae595882549f17 (diff) |
search account in aml form and remove name from dynamic forms
Diffstat (limited to 'packages/kyc-ui')
-rw-r--r-- | packages/kyc-ui/src/forms/nameAndBirthdate.ts | 59 | ||||
-rw-r--r-- | packages/kyc-ui/src/forms/personal-info.ts | 7 | ||||
-rw-r--r-- | packages/kyc-ui/src/forms/simplest.ts | 9 |
3 files changed, 33 insertions, 42 deletions
diff --git a/packages/kyc-ui/src/forms/nameAndBirthdate.ts b/packages/kyc-ui/src/forms/nameAndBirthdate.ts index 4e4cb17e6..dc4aa52e5 100644 --- a/packages/kyc-ui/src/forms/nameAndBirthdate.ts +++ b/packages/kyc-ui/src/forms/nameAndBirthdate.ts @@ -14,34 +14,31 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ - import type { - DoubleColumnForm, - DoubleColumnFormSection, - InternationalizationAPI, - UIHandlerId, - } from "@gnu-taler/web-util/browser"; - - export const nameAndDob = (i18n: InternationalizationAPI): DoubleColumnForm => ({ - type: "double-column" as const, - design: [ - { - title: i18n.str`Simple form`, - fields: [ - { - type: "textArea", - id: ".full_name" as UIHandlerId, - name: "full_name", - label: i18n.str`Full Name`, - }, - { - type: "textArea", - id: ".birthdate" as UIHandlerId, - name: "birthdate", - label: i18n.str`Birthdate`, - }, - ], - }, - ], - }); - -
\ No newline at end of file +import type { + DoubleColumnForm, + InternationalizationAPI, + UIHandlerId, +} from "@gnu-taler/web-util/browser"; + +export const nameAndDob = ( + i18n: InternationalizationAPI, +): DoubleColumnForm => ({ + type: "double-column" as const, + design: [ + { + title: i18n.str`Simple form`, + fields: [ + { + type: "textArea", + id: "full_name" as UIHandlerId, + label: i18n.str`Full Name`, + }, + { + type: "textArea", + id: "birthdate" as UIHandlerId, + label: i18n.str`Birthdate`, + }, + ], + }, + ], +}); diff --git a/packages/kyc-ui/src/forms/personal-info.ts b/packages/kyc-ui/src/forms/personal-info.ts index 657fe603f..799a8eb3a 100644 --- a/packages/kyc-ui/src/forms/personal-info.ts +++ b/packages/kyc-ui/src/forms/personal-info.ts @@ -16,7 +16,6 @@ import type { DoubleColumnForm, - DoubleColumnFormSection, InternationalizationAPI, UIHandlerId, } from "@gnu-taler/web-util/browser"; @@ -40,8 +39,7 @@ export const personalInfo = ( // }, { type: "choiceStacked", - name: "trucker", - id: ".trucker" as UIHandlerId, + id: "trucker" as UIHandlerId, required: true, label: i18n.str`Are you a cross-border truck driver?`, choices: [ @@ -57,9 +55,8 @@ export const personalInfo = ( }, { type: "amount", - id: ".money" as UIHandlerId, + id: "money" as UIHandlerId, currency: "YEIN", - name: "money", converterId: "Taler.Amount", label: i18n.str`How much is in your pockets?`, }, diff --git a/packages/kyc-ui/src/forms/simplest.ts b/packages/kyc-ui/src/forms/simplest.ts index aa0646959..9cadbc95c 100644 --- a/packages/kyc-ui/src/forms/simplest.ts +++ b/packages/kyc-ui/src/forms/simplest.ts @@ -29,8 +29,7 @@ export const simplest = (i18n: InternationalizationAPI): DoubleColumnForm => ({ fields: [ { type: "textArea", - id: ".comment" as UIHandlerId, - name: "comment", + id: "comment" as UIHandlerId, label: i18n.str`Comment`, }, ], @@ -47,8 +46,7 @@ export function resolutionSection( fields: [ { type: "choiceHorizontal", - id: ".state" as UIHandlerId, - name: "state", + id: "state" as UIHandlerId, label: i18n.str`New state`, converterId: "TalerExchangeApi.AmlState", choices: [ @@ -68,9 +66,8 @@ export function resolutionSection( }, { type: "amount", - id: ".threshold" as UIHandlerId, + id: "threshold" as UIHandlerId, currency: "NETZBON", - name: "threshold", converterId: "Taler.Amount", label: i18n.str`New threshold`, }, |