From d195a9ddc85c52cf214984ebf63dc0e03f016c90 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 23 Jan 2023 11:00:25 -0300 Subject: fix name --- .../src/pages/DeletedTip.stories.tsx | 40 +++++++++++++++ .../merchant-backend-ui/src/pages/DeletedTip.tsx | 60 ++++++++++++++++++++++ .../src/pages/DepletedTip.stories.tsx | 40 --------------- .../merchant-backend-ui/src/pages/DepletedTip.tsx | 60 ---------------------- 4 files changed, 100 insertions(+), 100 deletions(-) create mode 100644 packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/DeletedTip.tsx delete mode 100644 packages/merchant-backend-ui/src/pages/DepletedTip.stories.tsx delete mode 100644 packages/merchant-backend-ui/src/pages/DepletedTip.tsx (limited to 'packages/merchant-backend-ui/src/pages') diff --git a/packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx b/packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx new file mode 100644 index 000000000..c20f6dc18 --- /dev/null +++ b/packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx @@ -0,0 +1,40 @@ +/* + 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 { h, VNode, FunctionalComponent } from 'preact'; +import { DepletedTip as TestedComponent } from './DepletedTip'; + + +export default { + title: 'DepletedTip', + component: TestedComponent, + argTypes: { + }, +}; + +function createExample(Component: FunctionalComponent, props: Partial) { + const r = (args: any) => + r.args = props + return r +} + +export const Example = createExample(TestedComponent, { +}); diff --git a/packages/merchant-backend-ui/src/pages/DeletedTip.tsx b/packages/merchant-backend-ui/src/pages/DeletedTip.tsx new file mode 100644 index 000000000..61fc52cdf --- /dev/null +++ b/packages/merchant-backend-ui/src/pages/DeletedTip.tsx @@ -0,0 +1,60 @@ +/* + 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 { Fragment, h, render, VNode } from "preact"; +import { render as renderToString } from "preact-render-to-string"; +import { Footer } from "../components/Footer"; +import "../css/pure-min.css"; +import "../css/style.css"; +import { Page } from "../styled"; + +function Head(): VNode { + return Status of your tip; +} + +export function DepletedTip(): VNode { + return ( + +
+

Tip already collected

+
You have already collected this tip.
+
+