refactor(pages): improve _document.tsx types with default locale
This commit is contained in:
parent
cbb8ab9fd5
commit
a3efc793c0
@ -1,8 +1,9 @@
|
||||
import { Html, Main, Head, NextScript } from 'next/document'
|
||||
import Document, { Html, Main, Head, NextScript } from 'next/document'
|
||||
|
||||
const NextDocument: React.FC = (): JSX.Element => {
|
||||
class MyDocument extends Document {
|
||||
render(): JSX.Element {
|
||||
return (
|
||||
<Html>
|
||||
<Html lang='en'>
|
||||
<Head />
|
||||
<body>
|
||||
<Main />
|
||||
@ -11,5 +12,6 @@ const NextDocument: React.FC = (): JSX.Element => {
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default NextDocument
|
||||
export default MyDocument
|
||||
|
Loading…
Reference in New Issue
Block a user