app/web: remove unnecessary getStaticProps
This commit is contained in:
parent
3aa9a2acc4
commit
8730280a06
@ -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,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user