move sign to static props

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