person page cleanup
This commit is contained in:
1 parent
b8d0c7aa91
commit
cdeece2b0b
1 file changed
+2
-18
@@ -5,25 +5,9 @@ import { Meta } from 'src/components/Meta'
|
|||||||
import { MetaBuilder } from 'src/lib/meta'
|
import { MetaBuilder } from 'src/lib/meta'
|
||||||
import { createApiUrl, requestGet, IResponseItems } from 'src/next-lib'
|
import { createApiUrl, requestGet, IResponseItems } from 'src/next-lib'
|
||||||
import { NextPage } from 'next'
|
import { NextPage } from 'next'
|
||||||
import { IMeta, ImageArtifact, ImageDefinition } from 'src/types'
|
import { IMeta, Person } from 'src/types'
|
||||||
import { Html } from 'src/components/Html'
|
import { Html } from 'src/components/Html'
|
||||||
|
|
||||||
type Person = {
|
|
||||||
id: string
|
|
||||||
position: string
|
|
||||||
name: [string, string, string]
|
|
||||||
post: string
|
|
||||||
diploma: string
|
|
||||||
edu: string
|
|
||||||
file: string
|
|
||||||
hash: string
|
|
||||||
shortName: string
|
|
||||||
status: string
|
|
||||||
url: string
|
|
||||||
picture: ImageArtifact
|
|
||||||
preview: ImageDefinition
|
|
||||||
}
|
|
||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
title: string
|
title: string
|
||||||
meta: IMeta
|
meta: IMeta
|
||||||
@@ -63,7 +47,7 @@ const Index: NextPage<IProps> = props => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const unstable_getStaticProps = async (ctx: any) => {
|
export const unstable_getStaticProps = async (ctx: any) => {
|
||||||
const id = ctx.params.person
|
const id = ctx.params.person
|
||||||
if (!id) {
|
if (!id) {
|
||||||
throw new Error('sry')
|
throw new Error('sry')
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user