Initial push

This commit is contained in:
Henry
2023-04-06 22:17:34 +01:00
commit 05c86ff9c5
162 changed files with 9112 additions and 0 deletions
@@ -0,0 +1,17 @@
import { Suspense } from 'react'
// project imports
import Loader from './Loader'
// ==============================|| LOADABLE - LAZY LOADING ||============================== //
const Loadable = (Component) =>
function WithLoader(props) {
return (
<Suspense fallback={<Loader />}>
<Component {...props} />
</Suspense>
)
}
export default Loadable
@@ -0,0 +1,21 @@
// material-ui
import LinearProgress from '@mui/material/LinearProgress'
import { styled } from '@mui/material/styles'
// styles
const LoaderWrapper = styled('div')({
position: 'fixed',
top: 0,
left: 0,
zIndex: 1301,
width: '100%'
})
// ==============================|| LOADER ||============================== //
const Loader = () => (
<LoaderWrapper>
<LinearProgress color='primary' />
</LoaderWrapper>
)
export default Loader