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/stories.tsx | |
parent | 7ed3e78f790837479fc2bb2eb6ddc40c78ce59b5 (diff) | |
download | wallet-core-6138846050563e0dca95b0b6d792776925e4c35f.tar.xz |
new forms api
Diffstat (limited to 'packages/aml-backoffice-ui/src/stories.tsx')
-rw-r--r-- | packages/aml-backoffice-ui/src/stories.tsx | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/packages/aml-backoffice-ui/src/stories.tsx b/packages/aml-backoffice-ui/src/stories.tsx index 5ef54309c..7685195e5 100644 --- a/packages/aml-backoffice-ui/src/stories.tsx +++ b/packages/aml-backoffice-ui/src/stories.tsx @@ -26,16 +26,40 @@ import * as pages from "./pages/index.stories.js"; import { renderStories } from "@gnu-taler/web-util/browser"; import "./scss/main.css"; +import { h, ComponentChildren, FunctionComponent, VNode } from "preact"; +import { ExchangeApiContextTesting } from "./context/config.js"; function main(): void { renderStories( - {pages}, + { pages }, { strings, + getWrapperForGroup }, ); } +function getWrapperForGroup(): FunctionComponent { + return function All({ children }: { children?: ComponentChildren }): VNode { + return <ExchangeApiContextTesting + config={{ + currency: "ARS", + currency_specification: { + alt_unit_names: {}, + name: "ARS", + num_fractional_input_digits: 2, + num_fractional_normal_digits: 2, + num_fractional_trailing_zero_digits: 2 + }, + name: "taler-exchange", + supported_kyc_requirements: [], + version: "asd", + }}> + {children} + </ExchangeApiContextTesting> + } +} + if (document.readyState === "loading") { document.addEventListener("DOMContentLoaded", main); } else { |