From 3e060b80428943c6562250a6ff77eff10a0259b7 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 24 Oct 2022 10:46:14 +0200 Subject: repo: integrate packages from former merchant-backoffice.git --- .../src/pages/DepletedTip.stories.tsx | 40 ++ .../merchant-backend-ui/src/pages/DepletedTip.tsx | 60 +++ .../src/pages/OfferRefund.stories.tsx | 45 ++ .../merchant-backend-ui/src/pages/OfferRefund.tsx | 154 ++++++ .../src/pages/OfferTip.stories.tsx | 45 ++ .../merchant-backend-ui/src/pages/OfferTip.tsx | 141 ++++++ .../src/pages/RequestPayment.stories.tsx | 45 ++ .../src/pages/RequestPayment.tsx | 196 ++++++++ .../src/pages/ShowOrderDetails.examples.ts | 219 ++++++++ .../src/pages/ShowOrderDetails.stories.tsx | 49 ++ .../src/pages/ShowOrderDetails.tsx | 551 +++++++++++++++++++++ 11 files changed, 1545 insertions(+) create mode 100644 packages/merchant-backend-ui/src/pages/DepletedTip.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/DepletedTip.tsx create mode 100644 packages/merchant-backend-ui/src/pages/OfferRefund.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/OfferRefund.tsx create mode 100644 packages/merchant-backend-ui/src/pages/OfferTip.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/OfferTip.tsx create mode 100644 packages/merchant-backend-ui/src/pages/RequestPayment.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/RequestPayment.tsx create mode 100644 packages/merchant-backend-ui/src/pages/ShowOrderDetails.examples.ts create mode 100644 packages/merchant-backend-ui/src/pages/ShowOrderDetails.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/ShowOrderDetails.tsx (limited to 'packages/merchant-backend-ui/src/pages') diff --git a/packages/merchant-backend-ui/src/pages/DepletedTip.stories.tsx b/packages/merchant-backend-ui/src/pages/DepletedTip.stories.tsx new file mode 100644 index 000000000..c20f6dc18 --- /dev/null +++ b/packages/merchant-backend-ui/src/pages/DepletedTip.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/DepletedTip.tsx b/packages/merchant-backend-ui/src/pages/DepletedTip.tsx new file mode 100644 index 000000000..756b08d6a --- /dev/null +++ b/packages/merchant-backend-ui/src/pages/DepletedTip.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. +
+
+