app/web: remove unnecessary getStaticProps

This commit is contained in:
Chika 2022-11-27 13:13:43 +03:00
parent 3aa9a2acc4
commit 8730280a06

View File

@ -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 (
<Head>
<title>{`Вход - ${title}`}</title>
@ -10,7 +10,7 @@ function PageHead({ title }) {
);
}
export default function Home({ title, description }) {
export default function Home() {
return (
<>
<PageHead title={description} />
@ -18,12 +18,3 @@ export default function Home({ title, description }) {
</>
);
}
export function getStaticProps() {
return {
props: {
title,
description,
},
};
}