next page cleanup

This commit is contained in:
tmshv committed 2019-10-17 15:08:34 +03:00
1 parent 436b58cede
commit 4e076b787e
1 file changed
+2 -3
+2 -3
View File
@@ -9,7 +9,7 @@ import { Meta } from '../src/components/Meta'
import { meta } from '../src/lib/meta'
import { createApiUrl, requestGet, wrapInitialProps } from '../src/next-lib'
const Index = (props) => (
const Index = props => (
<App
menu={buildMenu(props.pageUrl, menuModel)}
showAuthor={true}
@@ -31,7 +31,6 @@ const Index = (props) => (
Index.getInitialProps = wrapInitialProps(async (ctx) => {
const pageUrl = ctx.req.url
// // const pageUrl = '/neighbors/2018'
const page = await requestGet(createApiUrl(ctx.req, `/api/page?page=${pageUrl}`), {})
const image = page.preview ? page.preview.artifacts.fb : {}
@@ -48,4 +47,4 @@ Index.getInitialProps = wrapInitialProps(async (ctx) => {
}
})
export default Index
export default Index