From ae2df08abd2da47c3b409d4f61d746825daa500d Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 12 Dec 2022 10:58:16 -0300 Subject: more stories in bank demo --- packages/demobank-ui/src/components/Loading.tsx | 21 ++++++++++++++ .../src/pages/PaymentOptions.stories.tsx | 33 ++++++++++++++++++++++ .../src/pages/PaytoWireTransferForm.stories.tsx | 33 ++++++++++++++++++++++ packages/demobank-ui/src/pages/index.stories.tsx | 2 ++ 4 files changed, 89 insertions(+) create mode 100644 packages/demobank-ui/src/components/Loading.tsx create mode 100644 packages/demobank-ui/src/pages/PaymentOptions.stories.tsx create mode 100644 packages/demobank-ui/src/pages/PaytoWireTransferForm.stories.tsx (limited to 'packages') diff --git a/packages/demobank-ui/src/components/Loading.tsx b/packages/demobank-ui/src/components/Loading.tsx new file mode 100644 index 000000000..8fd01858b --- /dev/null +++ b/packages/demobank-ui/src/components/Loading.tsx @@ -0,0 +1,21 @@ +/* + This file is part of GNU Taler + (C) 2022 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 + */ + +import { h, VNode } from "preact"; + +export function Loading(): VNode { + return
loading...
; +} diff --git a/packages/demobank-ui/src/pages/PaymentOptions.stories.tsx b/packages/demobank-ui/src/pages/PaymentOptions.stories.tsx new file mode 100644 index 000000000..aced5eea9 --- /dev/null +++ b/packages/demobank-ui/src/pages/PaymentOptions.stories.tsx @@ -0,0 +1,33 @@ +/* + This file is part of GNU Taler + (C) 2022 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 + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { PaymentOptions } from "./PaymentOptions.js"; + +export default { + title: "PaymentOptions", +}; + +export const USD = { + component: PaymentOptions, + props: { + currency: "USD", + }, +}; diff --git a/packages/demobank-ui/src/pages/PaytoWireTransferForm.stories.tsx b/packages/demobank-ui/src/pages/PaytoWireTransferForm.stories.tsx new file mode 100644 index 000000000..141b9addf --- /dev/null +++ b/packages/demobank-ui/src/pages/PaytoWireTransferForm.stories.tsx @@ -0,0 +1,33 @@ +/* + This file is part of GNU Taler + (C) 2022 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 + */ + +/** + * + * @author Sebastian Javier Marchano (sebasjm) + */ + +import { PaytoWireTransferForm } from "./PaytoWireTransferForm.js"; + +export default { + title: "PaytoWireTransferForm", +}; + +export const USD = { + component: PaytoWireTransferForm, + props: { + currency: "USD", + }, +}; diff --git a/packages/demobank-ui/src/pages/index.stories.tsx b/packages/demobank-ui/src/pages/index.stories.tsx index 1c4c64cdb..10ce479a1 100644 --- a/packages/demobank-ui/src/pages/index.stories.tsx +++ b/packages/demobank-ui/src/pages/index.stories.tsx @@ -15,3 +15,5 @@ */ export * as qr from "./QrCodeSection.stories.js"; +export * as po from "./PaymentOptions.stories.js"; +export * as ptf from "./PaytoWireTransferForm.stories.js"; -- cgit v1.2.3