From be489b6b3ea4214f546dfc33d6bb0f39ce82b5ab Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 29 Mar 2022 00:45:17 -0300 Subject: remove storybook --- .../src/components/Banner.stories.tsx | 10 ++++----- .../src/components/Banner.tsx | 2 +- .../src/components/index.stories.tsx | 25 ++++++++++++++++++++++ 3 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 packages/taler-wallet-webextension/src/components/index.stories.tsx (limited to 'packages/taler-wallet-webextension/src/components') diff --git a/packages/taler-wallet-webextension/src/components/Banner.stories.tsx b/packages/taler-wallet-webextension/src/components/Banner.stories.tsx index e4fc63ac1..f023e0d83 100644 --- a/packages/taler-wallet-webextension/src/components/Banner.stories.tsx +++ b/packages/taler-wallet-webextension/src/components/Banner.stories.tsx @@ -19,18 +19,18 @@ * @author Sebastian Javier Marchano (sebasjm) */ -import { Banner } from "./Banner.js"; import { Fragment, h, VNode } from "preact"; import { Avatar } from "../mui/Avatar.js"; -import { Icon, SvgIcon } from "./styled/index.js"; import { Typography } from "../mui/Typography.js"; - +import { Banner } from "./Banner.js"; +import { SvgIcon } from "./styled/index.js"; +import wifiIcon from "../svg/wifi.svg"; export default { title: "mui/banner", component: Banner, }; -function Wrapper({ children }: any) { +function Wrapper({ children }: any): VNode { return (
; + return ; } export const BasicExample = () => ( diff --git a/packages/taler-wallet-webextension/src/components/Banner.tsx b/packages/taler-wallet-webextension/src/components/Banner.tsx index 7bbacee8d..88b36430b 100644 --- a/packages/taler-wallet-webextension/src/components/Banner.tsx +++ b/packages/taler-wallet-webextension/src/components/Banner.tsx @@ -19,7 +19,7 @@ interface Props extends JSX.HTMLAttributes { }; } -export function Banner({ title, elements, confirm, ...rest }: Props) { +export function Banner({ title, elements, confirm, ...rest }: Props): VNode { return ( diff --git a/packages/taler-wallet-webextension/src/components/index.stories.tsx b/packages/taler-wallet-webextension/src/components/index.stories.tsx new file mode 100644 index 000000000..7cf9d4c58 --- /dev/null +++ b/packages/taler-wallet-webextension/src/components/index.stories.tsx @@ -0,0 +1,25 @@ +/* + This file is part of GNU Taler + (C) 2021 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 * as a1 from "./Banner.stories.js"; +import * as a2 from "./PendingTransactions.stories.js"; + +export default [a1, a2]; -- cgit v1.2.3