fixed _document page
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import {createEmotionCacheLtr} from "@/core/utils/createEmotionCache";
|
import {createEmotionCacheRtl} from "@/core/utils/createEmotionCache";
|
||||||
import theme from "@/core/utils/theme";
|
import theme from "@/core/utils/theme";
|
||||||
import createEmotionServer from "@emotion/server/create-instance";
|
import createEmotionServer from "@emotion/server/create-instance";
|
||||||
import Document, {Head, Html, Main, NextScript} from "next/document";
|
import Document, {Head, Html, Main, NextScript} from "next/document";
|
||||||
@@ -13,10 +13,6 @@ export default function MyDocument(props) {
|
|||||||
<meta name="emotion-insertion-point" content=""/>
|
<meta name="emotion-insertion-point" content=""/>
|
||||||
<link rel="shortcut icon" href="/icons/favicon.ico"/>
|
<link rel="shortcut icon" href="/icons/favicon.ico"/>
|
||||||
<link rel="manifest" href="/manifest.json"/>
|
<link rel="manifest" href="/manifest.json"/>
|
||||||
<link
|
|
||||||
rel="stylesheet"
|
|
||||||
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
|
|
||||||
/>
|
|
||||||
{emotionStyleTags}
|
{emotionStyleTags}
|
||||||
</Head>
|
</Head>
|
||||||
<body>
|
<body>
|
||||||
@@ -32,7 +28,7 @@ MyDocument.getInitialProps = async (ctx) => {
|
|||||||
let cache;
|
let cache;
|
||||||
switch (ctx.locale) {
|
switch (ctx.locale) {
|
||||||
case "fa":
|
case "fa":
|
||||||
cache = createEmotionCacheLtr();
|
cache = createEmotionCacheRtl();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user