From 87c10f6c8a5e89b9252605a38023a9cc8c604db3 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 23 Jan 2023 11:51:33 -0300 Subject: depleted rollback --- packages/merchant-backend-ui/README.md | 10 ++-- packages/merchant-backend-ui/rollup.config.js | 2 +- .../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 ++++++++++++++++++++++ 6 files changed, 106 insertions(+), 106 deletions(-) delete mode 100644 packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx delete mode 100644 packages/merchant-backend-ui/src/pages/DeletedTip.tsx create mode 100644 packages/merchant-backend-ui/src/pages/DepletedTip.stories.tsx create mode 100644 packages/merchant-backend-ui/src/pages/DepletedTip.tsx (limited to 'packages') diff --git a/packages/merchant-backend-ui/README.md b/packages/merchant-backend-ui/README.md index 34cf3210a..bbf826e0e 100644 --- a/packages/merchant-backend-ui/README.md +++ b/packages/merchant-backend-ui/README.md @@ -4,11 +4,11 @@ Merchant Backend pages This project generate 5 templates for the merchant backend: - * DeletedTip - * OfferRefund - * OfferTip - * RequestPayment - * ShowOrderDetails +- DepletedTip +- OfferRefund +- OfferTip +- RequestPayment +- ShowOrderDetails This pages are to be serve from the merchant-backend service and will be queried for browser that may or may not have JavaScript enabled, so we are going to do server side rendering. The merchant-backend service is currently supporting mustache library for server side rendering. diff --git a/packages/merchant-backend-ui/rollup.config.js b/packages/merchant-backend-ui/rollup.config.js index 5f22cc654..18d72e56b 100644 --- a/packages/merchant-backend-ui/rollup.config.js +++ b/packages/merchant-backend-ui/rollup.config.js @@ -110,7 +110,7 @@ const pageDefinition = (name) => ({ export default [ pageDefinition("OfferTip"), pageDefinition("OfferRefund"), - pageDefinition("DeletedTip"), + pageDefinition("DepletedTip"), pageDefinition("RequestPayment"), pageDefinition("ShowOrderDetails"), ] diff --git a/packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx b/packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx deleted file mode 100644 index a249c4074..000000000 --- a/packages/merchant-backend-ui/src/pages/DeletedTip.stories.tsx +++ /dev/null @@ -1,40 +0,0 @@ -/* - 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 { DeletedTip as TestedComponent } from "./DeletedTip"; - -export default { - title: "DeletedTip", - 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 deleted file mode 100644 index 10f3c6a17..000000000 --- a/packages/merchant-backend-ui/src/pages/DeletedTip.tsx +++ /dev/null @@ -1,60 +0,0 @@ -/* - 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 DeletedTip(): VNode { - return ( - -
-

Tip already collected

-
You have already collected this tip.
-
-