diff --git a/src/pages/_app.jsx b/src/pages/_app.jsx index 573bef2..85b03cd 100644 --- a/src/pages/_app.jsx +++ b/src/pages/_app.jsx @@ -6,6 +6,7 @@ import {LoadingProvider} from "@/lib/app/contexts/loading"; import {UserProvider} from "@/lib/app/contexts/user"; import "moment/locale/fa"; import {NextIntlProvider} from "next-intl"; +import TitlePage from "@/core/components/TitlePage"; const App = ({Component, pageProps}) => { return ( @@ -14,6 +15,7 @@ const App = ({Component, pageProps}) => { + diff --git a/src/pages/dashboard/change-password/index.jsx b/src/pages/dashboard/change-password/index.jsx index 380b5ff..670e184 100644 --- a/src/pages/dashboard/change-password/index.jsx +++ b/src/pages/dashboard/change-password/index.jsx @@ -1,12 +1,10 @@ import DashboardChangePasswordComponent from "@/components/dashboard/change-password"; -import TitlePage from "@/core/components/TitlePage"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; export default function LoanFollowUp() { return ( - ); @@ -17,6 +15,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.change_password", isBot, }, }; diff --git a/src/pages/dashboard/edit-profile/index.jsx b/src/pages/dashboard/edit-profile/index.jsx index cf68add..9460506 100644 --- a/src/pages/dashboard/edit-profile/index.jsx +++ b/src/pages/dashboard/edit-profile/index.jsx @@ -1,12 +1,10 @@ import DashboardEditProfile from "@/components/dashboard/edit-profile"; -import TitlePage from "@/core/components/TitlePage"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; export default function LoanFollowUp() { return ( - ); @@ -17,6 +15,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.edit_profile", isBot, }, }; diff --git a/src/pages/dashboard/index.jsx b/src/pages/dashboard/index.jsx index 83bbb7c..af824d5 100644 --- a/src/pages/dashboard/index.jsx +++ b/src/pages/dashboard/index.jsx @@ -1,12 +1,10 @@ import DashboardFirstComponent from "@/components/dashboard/first"; -import TitlePage from "@/core/components/TitlePage"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; export default function Dashboard() { return ( - ); @@ -17,6 +15,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.dashboard_page", isBot, }, }; diff --git a/src/pages/dashboard/machinary-expert/index.jsx b/src/pages/dashboard/machinary-expert/index.jsx index 0f94415..edef041 100644 --- a/src/pages/dashboard/machinary-expert/index.jsx +++ b/src/pages/dashboard/machinary-expert/index.jsx @@ -1,5 +1,4 @@ import DashboardMachinaryOfficeComponent from "@/components/dashboard/machinary-office"; -import TitlePage from "@/core/components/TitlePage"; import RolePermission from "@/middlewares/RolePermission"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; @@ -9,7 +8,6 @@ export default function PassengerOffice() { return ( - @@ -21,6 +19,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.machinary_office_page", isBot, }, }; diff --git a/src/pages/dashboard/passenger-boss/index.jsx b/src/pages/dashboard/passenger-boss/index.jsx index ab40851..1d36dcb 100644 --- a/src/pages/dashboard/passenger-boss/index.jsx +++ b/src/pages/dashboard/passenger-boss/index.jsx @@ -1,5 +1,4 @@ import DashboardPassengerBossComponent from "@/components/dashboard/passenger-boss"; -import TitlePage from "@/core/components/TitlePage"; import RolePermission from "@/middlewares/RolePermission"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; @@ -9,7 +8,6 @@ export default function PassengerBoss() { return ( - @@ -21,6 +19,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.passenger_boss_page", isBot, }, }; diff --git a/src/pages/dashboard/passenger-office-chief/index.jsx b/src/pages/dashboard/passenger-office-chief/index.jsx index 0ff7720..1fa2c64 100644 --- a/src/pages/dashboard/passenger-office-chief/index.jsx +++ b/src/pages/dashboard/passenger-office-chief/index.jsx @@ -1,5 +1,4 @@ import DashboardPassengerOfficeComponent from "@/components/dashboard/passenger-office"; -import TitlePage from "@/core/components/TitlePage"; import RolePermission from "@/middlewares/RolePermission"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; @@ -9,7 +8,6 @@ export default function PassengerOffice() { return ( - @@ -21,6 +19,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.passenger_office_page", isBot, }, }; diff --git a/src/pages/dashboard/province-manager/index.jsx b/src/pages/dashboard/province-manager/index.jsx index 748ba4c..cd362f4 100644 --- a/src/pages/dashboard/province-manager/index.jsx +++ b/src/pages/dashboard/province-manager/index.jsx @@ -1,5 +1,4 @@ import DashboardProvinceManagerComponent from "@/components/dashboard/province-manager"; -import TitlePage from "@/core/components/TitlePage"; import RolePermission from "@/middlewares/RolePermission"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; @@ -9,7 +8,6 @@ export default function PassengerOffice() { return ( - @@ -21,6 +19,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.province_manager_page", isBot, }, }; diff --git a/src/pages/dashboard/transportation-assistant/index.jsx b/src/pages/dashboard/transportation-assistant/index.jsx index 5727284..63beeb1 100644 --- a/src/pages/dashboard/transportation-assistant/index.jsx +++ b/src/pages/dashboard/transportation-assistant/index.jsx @@ -1,5 +1,4 @@ import DashboardTransportationAssistanceComponent from "@/components/dashboard/transportation-assistance"; -import TitlePage from "@/core/components/TitlePage"; import RolePermission from "@/middlewares/RolePermission"; import WithAuthMiddleware from "@/middlewares/WithAuth"; import {parse} from "next-useragent"; @@ -9,7 +8,6 @@ export default function TransportationAssistance() { return ( - @@ -21,6 +19,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Dashboard.transportation_assistance", isBot, }, }; diff --git a/src/pages/index.jsx b/src/pages/index.jsx index 82c1f58..2e146c6 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,11 +1,9 @@ import FirstComponent from "@/components/first"; -import TitlePage from "@/core/components/TitlePage"; import {parse} from "next-useragent"; export default function Home() { return ( <> - ); @@ -16,6 +14,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "first_page", isBot, }, }; diff --git a/src/pages/login-expert.jsx b/src/pages/login-expert.jsx index 19eefc8..accace0 100644 --- a/src/pages/login-expert.jsx +++ b/src/pages/login-expert.jsx @@ -1,5 +1,4 @@ import LoginComponent from "@/components/login-expert"; -import TitlePage from "@/core/components/TitlePage"; import WithoutAuthMiddleware from "@/middlewares/WithoutAuth"; import {parse} from "next-useragent"; import "react-toastify/dist/ReactToastify.css"; @@ -10,7 +9,6 @@ export default function Login() { const {directionApp} = useDirection(); return ( - {directionApp === "rtl" ? : } @@ -22,6 +20,7 @@ export async function getServerSideProps({req, locale}) { return { props: { messages: (await import(`&/locales/${locale}/app.json`)).default, + title: "Titles.title_login_expert_page", isBot, }, };