Linting
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import {Html, Main, NextScript, DocumentProps, Head} from 'next/document';
|
||||
import {FC} from "react";
|
||||
import Dict = NodeJS.Dict;
|
||||
import { Html, Main, NextScript, DocumentProps, Head } from 'next/document'
|
||||
import { FC } from 'react'
|
||||
import Dict = NodeJS.Dict
|
||||
|
||||
const MyDocument: FC<DocumentProps> = ({ __NEXT_DATA__ }) => {
|
||||
const pageProps: Dict<unknown>|undefined = __NEXT_DATA__?.props?.pageProps;
|
||||
const pageProps: Dict<unknown> | undefined = __NEXT_DATA__?.props?.pageProps
|
||||
return (
|
||||
<Html>
|
||||
<Head />
|
||||
<body className={pageProps?.bodyClassName as string}>
|
||||
<Main />
|
||||
<NextScript />
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
)
|
||||
}
|
||||
|
||||
export default MyDocument
|
||||
|
||||
Reference in New Issue
Block a user