move sign to static props
This commit is contained in:
1 parent
8a88b59f70
commit
34ce05b060
1 file changed
+8
-7
+8
-7
@@ -43,6 +43,7 @@ type Props = {
|
|||||||
breadcrumb: IBreadcumbsPart[]
|
breadcrumb: IBreadcumbsPart[]
|
||||||
meta?: IMeta
|
meta?: IMeta
|
||||||
tokens: Token[]
|
tokens: Token[]
|
||||||
|
documentSignature: Sign
|
||||||
}
|
}
|
||||||
|
|
||||||
const Index: NextPage<Props> = props => {
|
const Index: NextPage<Props> = props => {
|
||||||
@@ -54,12 +55,6 @@ const Index: NextPage<Props> = props => {
|
|||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
const sign: Sign = {
|
|
||||||
date: '20.01.2021г.',
|
|
||||||
person: 'Тимашева Марина Геннадьевна',
|
|
||||||
position: 'Директор',
|
|
||||||
signature: '0ac4ea89753a4ba9893799442325fb41',
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<App
|
<App
|
||||||
@@ -133,7 +128,7 @@ const Index: NextPage<Props> = props => {
|
|||||||
return (
|
return (
|
||||||
<FileCard
|
<FileCard
|
||||||
key={i}
|
key={i}
|
||||||
sign={sign}
|
sign={props.documentSignature}
|
||||||
{...x.data}
|
{...x.data}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
@@ -191,6 +186,12 @@ export const getStaticProps: GetStaticProps<Props> = async ctx => {
|
|||||||
date: page.date,
|
date: page.date,
|
||||||
meta,
|
meta,
|
||||||
breadcrumb,
|
breadcrumb,
|
||||||
|
documentSignature: {
|
||||||
|
date: '20.01.2021г.',
|
||||||
|
person: 'Тимашева Марина Геннадьевна',
|
||||||
|
position: 'Директор',
|
||||||
|
signature: '0ac4ea89753a4ba9893799442325fb41',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user