File tree Expand file tree Collapse file tree 7 files changed +40
-27
lines changed Expand file tree Collapse file tree 7 files changed +40
-27
lines changed Original file line number Diff line number Diff line change 1
1
import { FunctionComponent , useState } from "react" ;
2
2
import Link from "next/link" ;
3
3
import { useRouter } from "next/router" ;
4
- import Head from "next/head" ;
5
4
import { ErrorMessage , Formik } from "formik" ;
6
5
import { fetch } from "../../utils/dataAccess" ;
7
6
import { { { { ucf } } } } from '../../types/{{{ucf}}}' ;
@@ -28,12 +27,6 @@ export const Form: FunctionComponent<Props> = ({ {{{lc}}} }) => {
28
27
29
28
return (
30
29
< div >
31
- < div >
32
- < Head >
33
- < title > { { { { lc} } } ? `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` : `Create {{{ucf}}}` } </ title >
34
- < meta property = "og:title" content = { { { { lc} } } ? `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` : `Create {{{ucf}}}` } />
35
- </ Head >
36
- </ div >
37
30
< h1 > { { { { lc} } } ? `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` : `Create {{{ucf}}}` } </ h1 >
38
31
< Formik
39
32
initialValues = { { { ~ lc} } ? { ...{ { lc~ } } } : new { { { ucf} } } ( ) }
Original file line number Diff line number Diff line change 1
1
import { FunctionComponent } from "react" ;
2
2
import Link from "next/link" ;
3
- import Head from "next/head" ;
4
3
import ReferenceLinks from "../../components/common/ReferenceLinks" ;
5
4
import { { { { ucf } } } } from '../../types/{{{ucf}}}' ;
6
5
@@ -10,12 +9,6 @@ interface Props {
10
9
11
10
export const List : FunctionComponent < Props > = ( { { { { name} } } } ) => (
12
11
< div >
13
- < div >
14
- < Head >
15
- < title > { { { ucf} } } List</ title >
16
- < meta property = "og:title" content = "{{{ucf}}} List" key = "title" />
17
- </ Head >
18
- </ div >
19
12
< h1 > { { { ucf} } } List</ h1 >
20
13
< Link href = "/{{{name}}}/create" >
21
14
< a className = "btn btn-primary" > Create</ a >
Original file line number Diff line number Diff line change 1
1
import { FunctionComponent , useState } from 'react' ;
2
2
import Link from 'next/link' ;
3
- import Head from "next/head" ;
4
3
import { useRouter } from "next/router" ;
5
4
import { fetch } from "../../utils/dataAccess" ;
6
- import { ReferenceLinks } from '../common/ReferenceLinks' ;
5
+ import ReferenceLinks from '../common/ReferenceLinks' ;
7
6
import { { { { ucf } } } } from '../../types/{{{ucf}}}' ;
8
7
9
8
interface Props {
@@ -28,12 +27,6 @@ export const Show: FunctionComponent<Props> = ({ {{{lc}}} }) => {
28
27
29
28
return (
30
29
< div >
31
- < div >
32
- < Head >
33
- < title > { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } </ title >
34
- < meta property = "og:title" content = { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } key = "title" />
35
- </ Head >
36
- </ div >
37
30
< h1 > { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } </ h1 >
38
31
< table className = "table table-responsive table-striped table-hover" >
39
32
< thead >
Original file line number Diff line number Diff line change @@ -2,15 +2,22 @@ import { NextComponentType, NextPageContext } from 'next';
2
2
import { Form } from '../../../components/{{{lc}}}/Form' ;
3
3
import { { { { ucf } } } } from '../../../types/{{{ucf}}}' ;
4
4
import { fetch } from '../../../utils/dataAccess' ;
5
+ import Head from "next/head" ;
5
6
6
7
interface Props {
7
8
{ { { lc } } } : { { { ucf } } } ;
8
9
} ;
9
10
10
11
const Page : NextComponentType < NextPageContext , Props , Props > = ( { { { { lc} } } } ) => {
11
-
12
12
return (
13
- < Form { { { lc} } } = { { { { lc} } } } / >
13
+ < div >
14
+ < div >
15
+ < Head >
16
+ < title > { { { { lc} } } && `Edit {{{ucf}}} ${ { { ~ lc } }['@id']}` } </ title >
17
+ </ Head >
18
+ </ div >
19
+ < Form { { { lc} } } = { { { { lc} } } } / >
20
+ </div >
14
21
) ;
15
22
} ;
16
23
Original file line number Diff line number Diff line change @@ -2,14 +2,22 @@ import { NextComponentType, NextPageContext } from 'next';
2
2
import { Show } from '../../../components/{{{lc}}}/Show' ;
3
3
import { { { { ucf } } } } from '../../../types/{{{ucf}}}' ;
4
4
import { fetch } from '../../../utils/dataAccess' ;
5
+ import Head from "next/head" ;
5
6
6
7
interface Props {
7
8
{ { { lc } } } : { { { ucf } } } ;
8
9
} ;
9
10
10
11
const Page : NextComponentType < NextPageContext , Props , Props > = ( { { { { lc} } } } ) => {
11
12
return (
12
- < Show { { { lc} } } = { { { { lc} } } } / >
13
+ < div >
14
+ < div >
15
+ < Head >
16
+ < title > { `Show {{{ucf}}} ${ { { ~ lc } }['@id']}` } </ title >
17
+ </ Head >
18
+ </ div >
19
+ < Show { { { lc} } } = { { { { lc} } } } / >
20
+ </div >
13
21
) ;
14
22
} ;
15
23
Original file line number Diff line number Diff line change 1
1
import { NextComponentType , NextPageContext } from "next" ;
2
2
import { Form } from "../../components/{{{lc}}}/Form" ;
3
+ import Head from "next/head" ;
4
+
5
+ const Page : NextComponentType < NextPageContext > = ( ) => (
6
+ < div >
7
+ < div >
8
+ < Head >
9
+ < title > Create { { { ucf} } } </ title >
10
+ </ Head >
11
+ </ div >
12
+ < Form />
13
+ </ div >
14
+ )
3
15
4
- const Page : NextComponentType < NextPageContext > = ( ) => < Form /> ;
5
16
6
17
export default Page ;
Original file line number Diff line number Diff line change @@ -3,13 +3,21 @@ import { List } from '../../components/{{{lc}}}/List';
3
3
import { PagedCollection } from '../../types/Collection' ;
4
4
import { { { { ucf } } } } from '../../types/{{{ucf}}}' ;
5
5
import { fetch } from '../../utils/dataAccess' ;
6
+ import Head from "next/head" ;
6
7
7
8
interface Props {
8
9
collection : PagedCollection < { { { ucf } } } > ;
9
10
}
10
11
11
12
const Page : NextComponentType < NextPageContext , Props , Props > = ( { collection} ) => (
12
- < List { { { name} } } = { collection[ '{{{hydraPrefix}}}member' ] } />
13
+ < div >
14
+ < div >
15
+ < Head >
16
+ < title > { { { ucf} } } List</ title >
17
+ </ Head >
18
+ </ div >
19
+ < List { { { name} } } = { collection[ '{{{hydraPrefix}}}member' ] } />
20
+ </ div >
13
21
) ;
14
22
15
23
Page . getInitialProps = async ( ) => {
You can’t perform that action at this time.
0 commit comments