Skip to content
This repository was archived by the owner on Mar 16, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions pages/_document.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import Document, { Head, Main, NextScript } from "next/document";
import flush from "styled-jsx/server";
import enUS from "antd/lib/locale-provider/en_US";
import { LocaleProvider } from "antd";
import stylesheet from "styles/index.less";
import Document, { Head, Main, NextScript } from 'next/document';
import flush from 'styled-jsx/server';
import enUS from 'antd/lib/locale-provider/en_US';
import { LocaleProvider } from 'antd';
import stylesheet from 'styles/index.less';

export default class MyDocument extends Document {
static getInitialProps({ renderPage }) {
Expand All @@ -15,7 +15,7 @@ export default class MyDocument extends Document {
return (
<html lang="en">
<Head>
<style>{stylesheet}</style>
<style dangerouslySetInnerHTML={{ __html: stylesheet }} />
</Head>
<body>
<LocaleProvider locale={enUS}>
Expand Down