From 8817980aecda6388a387a012e5e518feaf489d5c Mon Sep 17 00:00:00 2001 From: Justine Date: Tue, 2 Feb 2021 14:06:24 +0100 Subject: [PATCH 1/3] fixed syntax errors --- templates/next/components/foo/Form.tsx | 6 +++--- templates/next/components/foo/List.tsx | 2 +- templates/next/components/foo/Show.tsx | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/next/components/foo/Form.tsx b/templates/next/components/foo/Form.tsx index f97a3b9e..40945da0 100644 --- a/templates/next/components/foo/Form.tsx +++ b/templates/next/components/foo/Form.tsx @@ -30,11 +30,11 @@ export const Form: FunctionComponent = ({ {{{lc}}} }) => {
- { {{{lc}}} ? `Edit {{{ucf}}} ${ {{{~lc}}}['@id']}` : `Create {{{ucf}}}` } - + { {{{lc}}} ? `Edit {{{ucf}}} ${ {{~lc}}['@id']}` : `Create {{{ucf}}}` } +
-

{{{lc}}} ? `Edit {{{ucf}}} ${ {{{~lc}}}['@id']}` : `Create {{{ucf}}}`

+

{ {{{lc}}} ? `Edit {{{ucf}}} ${ {{~lc}}['@id']}` : `Create {{{ucf}}}` }

{ diff --git a/templates/next/components/foo/List.tsx b/templates/next/components/foo/List.tsx index 0826fa40..7a1ecba9 100644 --- a/templates/next/components/foo/List.tsx +++ b/templates/next/components/foo/List.tsx @@ -39,7 +39,7 @@ export const List: FunctionComponent = ({ {{{name}}} }) => ( {{/each}}

- Edit + Edit ))} diff --git a/templates/next/components/foo/Show.tsx b/templates/next/components/foo/Show.tsx index 0c6d59d8..597bf956 100644 --- a/templates/next/components/foo/Show.tsx +++ b/templates/next/components/foo/Show.tsx @@ -30,11 +30,11 @@ export const Show: FunctionComponent = ({ {{{lc}}} }) => {

- {`Show {{{ucf}}} ${ {{{~lc}}}['@id']}`} - + {`Show {{{ucf}}} ${ {{~lc}}['@id']}`} +
-

{`Show {{{ucf}}} ${ {{{~lc}}}['@id']}`}

+

{`Show {{{ucf}}} ${ {{~lc}}['@id']}`}

From a66d8f6939ff26efb20bdabf9b720b7bf1377ab6 Mon Sep 17 00:00:00 2001 From: Justine Date: Tue, 2 Feb 2021 14:29:11 +0100 Subject: [PATCH 2/3] fixed edit link and icon --- templates/next/components/foo/List.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/next/components/foo/List.tsx b/templates/next/components/foo/List.tsx index 7a1ecba9..a33b73ec 100644 --- a/templates/next/components/foo/List.tsx +++ b/templates/next/components/foo/List.tsx @@ -38,8 +38,14 @@ export const List: FunctionComponent = ({ {{{name}}} }) => ( {{/each}} -

- Edit + ))} From 0ed247684bf5dec44d17a2ee1939016b07a5178b Mon Sep 17 00:00:00 2001 From: Justine Date: Tue, 2 Feb 2021 14:39:53 +0100 Subject: [PATCH 3/3] fixed syntax error in show --- templates/next/components/foo/Show.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/next/components/foo/Show.tsx b/templates/next/components/foo/Show.tsx index 597bf956..a7259124 100644 --- a/templates/next/components/foo/Show.tsx +++ b/templates/next/components/foo/Show.tsx @@ -27,7 +27,7 @@ export const Show: FunctionComponent = ({ {{{lc}}} }) => { }; return ( -

+
{`Show {{{ucf}}} ${ {{~lc}}['@id']}`}

{{#if reference}}{{else}}{ {{{../lc}}}['{{{name}}}'] }{{/if}} + + +