fixed _document page

This commit is contained in:
Amirhossein Mahmoodi
2023-08-01 10:06:42 +03:30
parent fda66b32ea
commit 2d577756d5

View File

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