From 1d5b3cf80a4514bc896eb89383053fbcf7417aba Mon Sep 17 00:00:00 2001 From: Roman Timashev Date: Mon, 20 Sep 2021 14:33:47 +0300 Subject: [PATCH] index page typing --- pages/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index aedd3551..5b5b7c31 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -4,7 +4,7 @@ import { Meta } from 'src/components/Meta' import { PageGrid } from 'src/components/PageGrid' import { HudozkaTitle } from 'src/components/HudozkaTitle' import { MetaBuilder } from 'src/lib/meta' -import { NextPage } from 'next' +import { GetStaticProps, NextPage } from 'next' import { IMenu, IMeta, PageCardDto } from 'src/types' import { apiGet } from '@/next-lib' import { createHomeCards, createMenu } from '@/remote/factory' @@ -40,7 +40,7 @@ const Index: NextPage = props => ( ) -export const getStaticProps = async () => { +export const getStaticProps: GetStaticProps = async () => { const url = 'https://hudozka.tmshv.com/home' const items = await apiGet(createHomeCards)(url, []) const menu = await apiGet(createMenu)('https://hudozka.tmshv.com/menu', [])