diff --git a/src/layouts/AppLayout.jsx b/src/layouts/AppLayout.jsx
index d2c5da5..1f160cf 100644
--- a/src/layouts/AppLayout.jsx
+++ b/src/layouts/AppLayout.jsx
@@ -5,11 +5,15 @@ import useUser from "@/lib/app/hooks/useUser";
import Head from "next/head";
import NextNProgress from "nextjs-progressbar";
import {useEffect} from "react";
+import {ToastContainer} from "react-toastify";
+import useDirection from "@/lib/app/hooks/useDirection";
function AppLayout({children, isBot}) {
const {languageIsReady} = useLanguage();
const {setLoadingPage} = useLoading();
const {userChangedLanguage, token, isAuth} = useUser();
+ const {directionApp} = useDirection();
+
useEffect(() => {
if (languageIsReady) {
if (token) {
@@ -91,6 +95,7 @@ function AppLayout({children, isBot}) {
color={theme.palette.secondary.dark}
options={{showSpinner: false}}
/>
+ {directionApp === "rtl" ? : }
{children}
>
);
diff --git a/src/pages/login.jsx b/src/pages/login.jsx
index 63baea0..b9ba800 100644
--- a/src/pages/login.jsx
+++ b/src/pages/login.jsx
@@ -2,15 +2,11 @@ import LoginComponent from "@/components/login";
import WithoutAuthMiddleware from "@/middlewares/WithoutAuth";
import {parse} from "next-useragent";
import "react-toastify/dist/ReactToastify.css";
-import {ToastContainer} from "react-toastify";
-import useDirection from "@/lib/app/hooks/useDirection";
export default function Login() {
- const {directionApp} = useDirection();
return (
- {directionApp === "rtl" ? : }
);
}
diff --git a/src/pages/register/index.jsx b/src/pages/register/index.jsx
index 3d2bfe9..d1160e2 100644
--- a/src/pages/register/index.jsx
+++ b/src/pages/register/index.jsx
@@ -2,15 +2,11 @@ import RegisterComponent from "@/components/register";
import WithoutAuthMiddleware from "@/middlewares/WithoutAuth";
import {parse} from "next-useragent";
import "react-toastify/dist/ReactToastify.css";
-import {ToastContainer} from "react-toastify";
-import useDirection from "@/lib/app/hooks/useDirection";
export default function Register() {
- const {directionApp} = useDirection();
return (
- {directionApp === "rtl" ? : }
);
}
diff --git a/src/pages/register/navy/index.jsx b/src/pages/register/navy/index.jsx
index df5a84f..b4ac8fe 100644
--- a/src/pages/register/navy/index.jsx
+++ b/src/pages/register/navy/index.jsx
@@ -2,15 +2,11 @@ import NavyComponent from "@/components/register/navy";
import WithoutAuthMiddleware from "@/middlewares/WithoutAuth";
import {parse} from "next-useragent";
import "react-toastify/dist/ReactToastify.css";
-import {ToastContainer} from "react-toastify";
-import useDirection from "@/lib/app/hooks/useDirection";
export default function Register() {
- const {directionApp} = useDirection();
return (
- {directionApp === "rtl" ? : }
);
}
diff --git a/src/pages/register/welfare-services/index.jsx b/src/pages/register/welfare-services/index.jsx
index 2212717..01a0042 100644
--- a/src/pages/register/welfare-services/index.jsx
+++ b/src/pages/register/welfare-services/index.jsx
@@ -2,15 +2,11 @@ import WelfareServicesComponent from "@/components/register/welfare-services";
import WithoutAuthMiddleware from "@/middlewares/WithoutAuth";
import {parse} from "next-useragent";
import "react-toastify/dist/ReactToastify.css";
-import {ToastContainer} from "react-toastify";
-import useDirection from "@/lib/app/hooks/useDirection";
export default function Register() {
- const {directionApp} = useDirection();
return (
- {directionApp === "rtl" ? : }
);
}