depleted rollback

This commit is contained in:
Sebastian 2023-01-23 11:51:33 -03:00
parent 6816052615
commit 87c10f6c8a
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1
4 changed files with 11 additions and 11 deletions

View File

@ -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.

View File

@ -110,7 +110,7 @@ const pageDefinition = (name) => ({
export default [
pageDefinition("OfferTip"),
pageDefinition("OfferRefund"),
pageDefinition("DeletedTip"),
pageDefinition("DepletedTip"),
pageDefinition("RequestPayment"),
pageDefinition("ShowOrderDetails"),
]

View File

@ -20,10 +20,10 @@
*/
import { h, VNode, FunctionalComponent } from "preact";
import { DeletedTip as TestedComponent } from "./DeletedTip";
import { DepletedTip as TestedComponent } from "./DepletedTip";
export default {
title: "DeletedTip",
title: "DepletedTip",
component: TestedComponent,
argTypes: {},
};

View File

@ -29,7 +29,7 @@ function Head(): VNode {
return <title>Status of your tip</title>;
}
export function DeletedTip(): VNode {
export function DepletedTip(): VNode {
return (
<Page>
<section>
@ -43,7 +43,7 @@ export function DeletedTip(): VNode {
export function mount(): void {
try {
render(<DeletedTip />, document.body);
render(<DepletedTip />, document.body);
} catch (e) {
console.error("got error", e);
if (e instanceof Error) {
@ -55,6 +55,6 @@ export function mount(): void {
export function buildTimeRendering(): { head: string; body: string } {
return {
head: renderToString(<Head />),
body: renderToString(<DeletedTip />),
body: renderToString(<DepletedTip />),
};
}