bbgo_origin/apps/bbgo-backtest-report/pages/_document.tsx
2022-05-17 01:53:51 +08:00

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;