add loading page

This commit is contained in:
Amirhossein Mahmoodi
2024-12-09 11:11:31 +03:30
parent 2c2ebe3b97
commit 596d44d3f2
8 changed files with 47 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
'use client'
import PageLoading from "@/core/components/PageLoading"
const Loading = () => {
return <PageLoading />
}
export default Loading

View File

@@ -0,0 +1,7 @@
'use client'
import PageLoading from "@/core/components/PageLoading"
const Loading = () => {
return <PageLoading />
}
export default Loading

View File

@@ -0,0 +1,7 @@
'use client'
import PageLoading from "@/core/components/PageLoading"
const Loading = () => {
return <PageLoading />
}
export default Loading

View File

@@ -0,0 +1,7 @@
'use client'
import PageLoading from "@/core/components/PageLoading"
const Loading = () => {
return <PageLoading />
}
export default Loading

View File

@@ -0,0 +1,7 @@
'use client'
import PageLoading from "@/core/components/PageLoading"
const Loading = () => {
return <PageLoading />
}
export default Loading

View File

@@ -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: "سامانه جامع راهداری",

View File

@@ -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";

View File

@@ -0,0 +1,10 @@
'use client'
import { Paper } from "@mui/material"
import LoadingHardPage from "./LoadingHardPage"
const PageLoading = () => {
return <Paper elevation={0} sx={{ position: "relative", overflowX: "hidden", width: '100%', height: '100%' }}>
<LoadingHardPage width={100} height={100} loading={true} sx={{ position: 'absolute' }} />
</Paper>
}
export default PageLoading