depleted rollback
This commit is contained in:
parent
6816052615
commit
87c10f6c8a
@ -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.
|
||||
|
@ -110,7 +110,7 @@ const pageDefinition = (name) => ({
|
||||
export default [
|
||||
pageDefinition("OfferTip"),
|
||||
pageDefinition("OfferRefund"),
|
||||
pageDefinition("DeletedTip"),
|
||||
pageDefinition("DepletedTip"),
|
||||
pageDefinition("RequestPayment"),
|
||||
pageDefinition("ShowOrderDetails"),
|
||||
]
|
||||
|
@ -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: {},
|
||||
};
|
@ -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 />),
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user