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; }