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:
|
This project generate 5 templates for the merchant backend:
|
||||||
|
|
||||||
* DeletedTip
|
- DepletedTip
|
||||||
* OfferRefund
|
- OfferRefund
|
||||||
* OfferTip
|
- OfferTip
|
||||||
* RequestPayment
|
- RequestPayment
|
||||||
* ShowOrderDetails
|
- 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.
|
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.
|
The merchant-backend service is currently supporting mustache library for server side rendering.
|
||||||
|
@ -110,7 +110,7 @@ const pageDefinition = (name) => ({
|
|||||||
export default [
|
export default [
|
||||||
pageDefinition("OfferTip"),
|
pageDefinition("OfferTip"),
|
||||||
pageDefinition("OfferRefund"),
|
pageDefinition("OfferRefund"),
|
||||||
pageDefinition("DeletedTip"),
|
pageDefinition("DepletedTip"),
|
||||||
pageDefinition("RequestPayment"),
|
pageDefinition("RequestPayment"),
|
||||||
pageDefinition("ShowOrderDetails"),
|
pageDefinition("ShowOrderDetails"),
|
||||||
]
|
]
|
||||||
|
@ -20,10 +20,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { h, VNode, FunctionalComponent } from "preact";
|
import { h, VNode, FunctionalComponent } from "preact";
|
||||||
import { DeletedTip as TestedComponent } from "./DeletedTip";
|
import { DepletedTip as TestedComponent } from "./DepletedTip";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
title: "DeletedTip",
|
title: "DepletedTip",
|
||||||
component: TestedComponent,
|
component: TestedComponent,
|
||||||
argTypes: {},
|
argTypes: {},
|
||||||
};
|
};
|
@ -29,7 +29,7 @@ function Head(): VNode {
|
|||||||
return <title>Status of your tip</title>;
|
return <title>Status of your tip</title>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function DeletedTip(): VNode {
|
export function DepletedTip(): VNode {
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<section>
|
<section>
|
||||||
@ -43,7 +43,7 @@ export function DeletedTip(): VNode {
|
|||||||
|
|
||||||
export function mount(): void {
|
export function mount(): void {
|
||||||
try {
|
try {
|
||||||
render(<DeletedTip />, document.body);
|
render(<DepletedTip />, document.body);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error("got error", e);
|
console.error("got error", e);
|
||||||
if (e instanceof Error) {
|
if (e instanceof Error) {
|
||||||
@ -55,6 +55,6 @@ export function mount(): void {
|
|||||||
export function buildTimeRendering(): { head: string; body: string } {
|
export function buildTimeRendering(): { head: string; body: string } {
|
||||||
return {
|
return {
|
||||||
head: renderToString(<Head />),
|
head: renderToString(<Head />),
|
||||||
body: renderToString(<DeletedTip />),
|
body: renderToString(<DepletedTip />),
|
||||||
};
|
};
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user