From 2d577756d5752e37bb4e41d303b924d0cb091d98 Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Tue, 1 Aug 2023 10:06:42 +0330 Subject: [PATCH] fixed _document page --- src/pages/_document.jsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pages/_document.jsx b/src/pages/_document.jsx index f71303f..c9c28bb 100644 --- a/src/pages/_document.jsx +++ b/src/pages/_document.jsx @@ -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) { - {emotionStyleTags} @@ -32,7 +28,7 @@ MyDocument.getInitialProps = async (ctx) => { let cache; switch (ctx.locale) { case "fa": - cache = createEmotionCacheLtr(); + cache = createEmotionCacheRtl(); break; }