From 596d44d3f2e1ac1cdcd029753dcd77fe179b31d0 Mon Sep 17 00:00:00 2001 From: Amirhossein Mahmoodi Date: Mon, 9 Dec 2024 11:11:31 +0330 Subject: [PATCH] add loading page --- src/app/(withAuth)/dashboard/azmayesh/loading.jsx | 7 +++++++ src/app/(withAuth)/dashboard/azmayesh_type/loading.jsx | 7 +++++++ src/app/(withAuth)/dashboard/loading.jsx | 7 +++++++ .../dashboard/road-patrols/operator/loading.jsx | 7 +++++++ .../dashboard/road-patrols/supervisor/loading.jsx | 7 +++++++ src/app/layout.js | 2 +- src/core/components/LoadingHardPage.jsx | 1 + src/core/components/PageLoading.jsx | 10 ++++++++++ 8 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 src/app/(withAuth)/dashboard/azmayesh/loading.jsx create mode 100644 src/app/(withAuth)/dashboard/azmayesh_type/loading.jsx create mode 100644 src/app/(withAuth)/dashboard/loading.jsx create mode 100644 src/app/(withAuth)/dashboard/road-patrols/operator/loading.jsx create mode 100644 src/app/(withAuth)/dashboard/road-patrols/supervisor/loading.jsx create mode 100644 src/core/components/PageLoading.jsx diff --git a/src/app/(withAuth)/dashboard/azmayesh/loading.jsx b/src/app/(withAuth)/dashboard/azmayesh/loading.jsx new file mode 100644 index 0000000..4d80e97 --- /dev/null +++ b/src/app/(withAuth)/dashboard/azmayesh/loading.jsx @@ -0,0 +1,7 @@ +'use client' +import PageLoading from "@/core/components/PageLoading" + +const Loading = () => { + return +} +export default Loading \ No newline at end of file diff --git a/src/app/(withAuth)/dashboard/azmayesh_type/loading.jsx b/src/app/(withAuth)/dashboard/azmayesh_type/loading.jsx new file mode 100644 index 0000000..4d80e97 --- /dev/null +++ b/src/app/(withAuth)/dashboard/azmayesh_type/loading.jsx @@ -0,0 +1,7 @@ +'use client' +import PageLoading from "@/core/components/PageLoading" + +const Loading = () => { + return +} +export default Loading \ No newline at end of file diff --git a/src/app/(withAuth)/dashboard/loading.jsx b/src/app/(withAuth)/dashboard/loading.jsx new file mode 100644 index 0000000..4d80e97 --- /dev/null +++ b/src/app/(withAuth)/dashboard/loading.jsx @@ -0,0 +1,7 @@ +'use client' +import PageLoading from "@/core/components/PageLoading" + +const Loading = () => { + return +} +export default Loading \ No newline at end of file diff --git a/src/app/(withAuth)/dashboard/road-patrols/operator/loading.jsx b/src/app/(withAuth)/dashboard/road-patrols/operator/loading.jsx new file mode 100644 index 0000000..4d80e97 --- /dev/null +++ b/src/app/(withAuth)/dashboard/road-patrols/operator/loading.jsx @@ -0,0 +1,7 @@ +'use client' +import PageLoading from "@/core/components/PageLoading" + +const Loading = () => { + return +} +export default Loading \ No newline at end of file diff --git a/src/app/(withAuth)/dashboard/road-patrols/supervisor/loading.jsx b/src/app/(withAuth)/dashboard/road-patrols/supervisor/loading.jsx new file mode 100644 index 0000000..4d80e97 --- /dev/null +++ b/src/app/(withAuth)/dashboard/road-patrols/supervisor/loading.jsx @@ -0,0 +1,7 @@ +'use client' +import PageLoading from "@/core/components/PageLoading" + +const Loading = () => { + return +} +export default Loading \ No newline at end of file diff --git a/src/app/layout.js b/src/app/layout.js index 66d8c25..f0786a8 100644 --- a/src/app/layout.js +++ b/src/app/layout.js @@ -1,6 +1,6 @@ +import favicon from "@/assets/images/favicon.svg"; import { AuthProvider } from "@/lib/contexts/auth"; import { TableSettingProvider } from "@/lib/contexts/tableSetting"; -import favicon from "@/assets/images/favicon.svg"; export const metadata = { title: "سامانه جامع راهداری", diff --git a/src/core/components/LoadingHardPage.jsx b/src/core/components/LoadingHardPage.jsx index 0f66f9c..a4da80d 100644 --- a/src/core/components/LoadingHardPage.jsx +++ b/src/core/components/LoadingHardPage.jsx @@ -1,3 +1,4 @@ +'use client' import { Backdrop, Box, Stack, styled, Typography, useTheme } from "@mui/material"; import SvgLoading from "@/core/components/svgs/SvgLoading"; import SvgError from "@/core/components/svgs/SvgError"; diff --git a/src/core/components/PageLoading.jsx b/src/core/components/PageLoading.jsx new file mode 100644 index 0000000..757d609 --- /dev/null +++ b/src/core/components/PageLoading.jsx @@ -0,0 +1,10 @@ +'use client' +import { Paper } from "@mui/material" +import LoadingHardPage from "./LoadingHardPage" + +const PageLoading = () => { + return + + +} +export default PageLoading \ No newline at end of file