diff --git a/src/layouts/AppLayout.jsx b/src/layouts/AppLayout.jsx index 1f160cf..d0f26d7 100644 --- a/src/layouts/AppLayout.jsx +++ b/src/layouts/AppLayout.jsx @@ -7,13 +7,14 @@ import NextNProgress from "nextjs-progressbar"; import {useEffect} from "react"; import {ToastContainer} from "react-toastify"; import useDirection from "@/lib/app/hooks/useDirection"; +import "react-toastify/dist/ReactToastify.css"; function AppLayout({children, isBot}) { const {languageIsReady} = useLanguage(); const {setLoadingPage} = useLoading(); const {userChangedLanguage, token, isAuth} = useUser(); const {directionApp} = useDirection(); - + useEffect(() => { if (languageIsReady) { if (token) { diff --git a/src/pages/login.jsx b/src/pages/login.jsx index b9ba800..5cac2bc 100644 --- a/src/pages/login.jsx +++ b/src/pages/login.jsx @@ -1,7 +1,6 @@ import LoginComponent from "@/components/login"; import WithoutAuthMiddleware from "@/middlewares/WithoutAuth"; import {parse} from "next-useragent"; -import "react-toastify/dist/ReactToastify.css"; export default function Login() { return ( diff --git a/src/pages/register/index.jsx b/src/pages/register/index.jsx index d1160e2..6d8d4d6 100644 --- a/src/pages/register/index.jsx +++ b/src/pages/register/index.jsx @@ -1,7 +1,6 @@ import RegisterComponent from "@/components/register"; import WithoutAuthMiddleware from "@/middlewares/WithoutAuth"; import {parse} from "next-useragent"; -import "react-toastify/dist/ReactToastify.css"; export default function Register() { return ( diff --git a/src/pages/register/navy/index.jsx b/src/pages/register/navy/index.jsx index b4ac8fe..2272d57 100644 --- a/src/pages/register/navy/index.jsx +++ b/src/pages/register/navy/index.jsx @@ -1,7 +1,6 @@ import NavyComponent from "@/components/register/navy"; import WithoutAuthMiddleware from "@/middlewares/WithoutAuth"; import {parse} from "next-useragent"; -import "react-toastify/dist/ReactToastify.css"; export default function Register() { return ( diff --git a/src/pages/register/welfare-services/index.jsx b/src/pages/register/welfare-services/index.jsx index 01a0042..b30bc4e 100644 --- a/src/pages/register/welfare-services/index.jsx +++ b/src/pages/register/welfare-services/index.jsx @@ -1,7 +1,6 @@ import WelfareServicesComponent from "@/components/register/welfare-services"; import WithoutAuthMiddleware from "@/middlewares/WithoutAuth"; import {parse} from "next-useragent"; -import "react-toastify/dist/ReactToastify.css"; export default function Register() { return (