aboutsummaryrefslogtreecommitdiff
path: root/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-04-24 23:42:14 -0300
committerSebastian <sebasjm@gmail.com>2023-04-24 23:42:14 -0300
commit00f108b9ddd4ac3447fd29552b3a503d6daed48d (patch)
treea69c09991b2c928c1f8e1eaf727c025a4e21a328 /packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx
parent2f8de9ea86cc1170b45e13fae6f0a66c7c4fd038 (diff)
downloadwallet-core-00f108b9ddd4ac3447fd29552b3a503d6daed48d.tar.gz
wallet-core-00f108b9ddd4ac3447fd29552b3a503d6daed48d.tar.bz2
wallet-core-00f108b9ddd4ac3447fd29552b3a503d6daed48d.zip
fix #7684
Diffstat (limited to 'packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx')
-rw-r--r--packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx58
1 files changed, 58 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx b/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx
new file mode 100644
index 000000000..6c48c6d55
--- /dev/null
+++ b/packages/merchant-backoffice-ui/src/paths/instance/kyc/list/ListPage.stories.tsx
@@ -0,0 +1,58 @@
+/*
+ This file is part of GNU Taler
+ (C) 2021-2023 Taler Systems S.A.
+
+ GNU Taler is free software; you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation; either version 3, or (at your option) any later version.
+
+ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with
+ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
+ */
+
+/**
+ *
+ * @author Sebastian Javier Marchano (sebasjm)
+ */
+
+import { h, VNode, FunctionalComponent } from "preact";
+import { ListPage as TestedComponent } from "./ListPage.js";
+import { tests } from "@gnu-taler/web-util/lib/index.browser";
+import { MerchantBackend } from "../../../../declaration.js";
+
+export default {
+ title: "Pages/KYC/List",
+ component: TestedComponent,
+ argTypes: {
+ onUpdate: { action: "onUpdate" },
+ onBack: { action: "onBack" },
+ },
+};
+
+export const Example = tests.createExample(TestedComponent, {
+ status: {
+ timeout_kycs: [],
+ pending_kycs: [
+ {
+ aml_status: 0,
+ exchange_url: "http://exchange.taler",
+ payto_uri: "payto://iban/de123123123",
+ kyc_url: "http://exchange.taler/kyc",
+ },
+ {
+ aml_status: 1,
+ exchange_url: "http://exchange.taler",
+ payto_uri: "payto://iban/de123123123",
+ },
+ {
+ aml_status: 2,
+ exchange_url: "http://exchange.taler",
+ payto_uri: "payto://iban/de123123123",
+ },
+ ],
+ } as MerchantBackend.Instances.AccountKycRedirects,
+});