Skip to content

Commit

Permalink
group Group example templates under example folder /src/templates/exa…
Browse files Browse the repository at this point in the history
…mple/TemplateA and TemplateB
  • Loading branch information
Min Htet Oo authored and Min Htet Oo committed Jan 31, 2024
1 parent 1fa5db4 commit 0858510
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TemplateProps } from "@tradetrust-tt/decentralized-renderer-react-components";
import React, { FunctionComponent } from "react";
import { DocumentQrCode } from "../../core/DocumentQrCode";
import { getDocumentData } from "../../utils";
import { DocumentQrCode } from "../../../core/DocumentQrCode";
import { getDocumentData } from "../../../utils";
import { TemplateADocument, TemplateASchema } from "./types";

const Content = (document: TemplateADocument): JSX.Element => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { TemplateProps } from "@tradetrust-tt/decentralized-renderer-react-components";
import React, { FunctionComponent } from "react";
import { getDocumentData } from "../../utils";
import { getDocumentData } from "../../../utils";
import { TemplateADocument, TemplateASchema } from "./types";
import { PrintWatermark } from "../../core/PrintWatermark";
import { PrintWatermark } from "../../../core/PrintWatermark";

const Content = (document: TemplateADocument): JSX.Element => {
return (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { TemplateProps } from "@tradetrust-tt/decentralized-renderer-react-components";
import React, { FunctionComponent } from "react";
import { DocumentQrCode } from "../../core/DocumentQrCode";
import { Wrapper } from "../../core/Wrapper";
import { getDocumentData } from "../../utils";
import { DocumentQrCode } from "../../../core/DocumentQrCode";
import { Wrapper } from "../../../core/Wrapper";
import { getDocumentData } from "../../../utils";
import { TemplateADocument, TemplateASchema } from "./types";

const Content = (document: TemplateADocument): JSX.Element => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { TemplateAWithWaterMark } from "./TemplateAWithWaterMark";
import { TemplateAWithWrapperAndErrorBoundry } from "./TemplateAWithWrapperAndErrorBoundry";

export const TemplateATemplates = [
// {
// id: "template-a-with-qr",
// label: "Template with QR Code",
// template: TemplateAWithQRCode,
// },
// {
// id: "template-a-with-wrapper-and-error-boundry",
// label: "Template with Wrapper and Error Boundry",
// template: TemplateAWithWrapperAndErrorBoundry,
// },
{
id: "template-a-with-qr",
label: "Template with QR Code",
template: TemplateAWithQRCode,
},
{
id: "template-a-with-wrapper-and-error-boundry",
label: "Template with Wrapper and Error Boundry",
template: TemplateAWithWrapperAndErrorBoundry,
},
{
id: "template-a-with-qr",
label: "With water mark",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import styled from "@emotion/styled";
import { RedactableValue, TemplateProps } from "@tradetrust-tt/decentralized-renderer-react-components";
import { format } from "date-fns";
import React, { FunctionComponent, useState } from "react";
import { DocumentQrCode } from "../../core/DocumentQrCode";
import { Wrapper } from "../../core/Wrapper";
import { IconRedact, PrivacyFilter } from "../../core/PrivacyFilter";
import { getDocumentData } from "../../utils";
import { DocumentQrCode } from "../../../core/DocumentQrCode";
import { Wrapper } from "../../../core/Wrapper";
import { IconRedact, PrivacyFilter } from "../../../core/PrivacyFilter";
import { getDocumentData } from "../../../utils";
import { TemplateB, TemplateBSchema } from "./types";

const CustomStyles = styled.div`
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/templates/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { TemplateRegistry } from "@tradetrust-tt/decentralized-renderer-react-components";
import { TemplateATemplates } from "./TemplateA";
import { TemplateBTemplates } from "./TemplateB";
import { TemplateATemplates } from "./examples/TemplateA";
import { TemplateBTemplates } from "./examples/TemplateB";

export const registry: TemplateRegistry<any> = {
TEMPLATE_A: TemplateATemplates,
Expand Down

0 comments on commit 0858510

Please sign in to comment.