From 8730280a06098cc22813ae557aa54cd43f0d8082 Mon Sep 17 00:00:00 2001 From: Chika Date: Sun, 27 Nov 2022 13:13:43 +0300 Subject: [PATCH] app/web: remove unnecessary getStaticProps --- apps/web/pages/index.jsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/apps/web/pages/index.jsx b/apps/web/pages/index.jsx index 041753e..523aad7 100644 --- a/apps/web/pages/index.jsx +++ b/apps/web/pages/index.jsx @@ -2,7 +2,7 @@ import Head from 'next/head'; import { description, title } from 'config/constants'; import Login from 'components/Login'; -function PageHead({ title }) { +function PageHead() { return ( {`Вход - ${title}`} @@ -10,7 +10,7 @@ function PageHead({ title }) { ); } -export default function Home({ title, description }) { +export default function Home() { return ( <> @@ -18,12 +18,3 @@ export default function Home({ title, description }) { ); } - -export function getStaticProps() { - return { - props: { - title, - description, - }, - }; -}