mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-11 09:33:50 +00:00
29 lines
631 B
TypeScript
29 lines
631 B
TypeScript
import Document, {DocumentContext, Head, Html, Main, NextScript} from 'next/document';
|
|
import {CssBaseline} from '@nextui-org/react';
|
|
|
|
class MyDocument extends Document {
|
|
static async getInitialProps(ctx: DocumentContext) {
|
|
const initialProps = await Document.getInitialProps(ctx);
|
|
|
|
// @ts-ignore
|
|
initialProps.styles = <>{initialProps.styles}</>;
|
|
return initialProps;
|
|
}
|
|
|
|
render() {
|
|
return (
|
|
<Html lang="en">
|
|
<Head>
|
|
{CssBaseline.flush()}
|
|
</Head>
|
|
<body>
|
|
<Main/>
|
|
<NextScript/>
|
|
</body>
|
|
</Html>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default MyDocument;
|