diff options
author | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-11-20 12:38:16 -0300 |
commit | 6138846050563e0dca95b0b6d792776925e4c35f (patch) | |
tree | b33cd36acf4b38d3a016506d4f7fa681c83beb63 /packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx | |
parent | 7ed3e78f790837479fc2bb2eb6ddc40c78ce59b5 (diff) | |
download | wallet-core-6138846050563e0dca95b0b6d792776925e4c35f.tar.xz |
new forms api
Diffstat (limited to 'packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx index a14966cc0..0b055f682 100644 --- a/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx +++ b/packages/aml-backoffice-ui/src/pages/AntiMoneyLaunderingForm.stories.tsx @@ -30,65 +30,75 @@ export default { export const SimpleComment = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 0, + formId: "simple_comment", onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); + export const Identification = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 1, + formId: "902.1e", onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); + export const OperationalLegalEntity = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 2, + formId: "902.11e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const Foundations = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 3, + formId: "902.12e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const DelcarationOfTrusts = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 4, + formId: "902.13e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); + export const InformationOnLifeInsurance = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 5, + formId: "902.15e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const DeclarationOfBeneficialOwner = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 6, + formId: "902.9e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const CustomerProfile = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 7, + formId: "902.5e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); export const RiskProfile = tests.createExample(TestedComponent, { account: "the_account", - selectedForm: 8, + formId: "902.4e", + onSubmit: async (justification, newState, newThreshold) => { - alert(JSON.stringify({justification, newState, newThreshold}, undefined, 2)) + alert(JSON.stringify({ justification, newState, newThreshold }, undefined, 2)) } }); |