perf: lazy load admin and me routes with Suspense

This commit is contained in:
Kirill
2026-05-15 13:27:15 +05:00
parent 5246a4e52e
commit 301f3eee5c
2 changed files with 37 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
import Box from '@mui/material/Box'
import Skeleton from '@mui/material/Skeleton'
export function SkeletonPage() {
return (
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 2, py: 3 }}>
<Skeleton variant="text" width="40%" height={48} />
<Skeleton variant="rectangular" height={200} sx={{ borderRadius: 2 }} />
<Skeleton variant="text" width="60%" />
<Skeleton variant="text" width="80%" />
<Skeleton variant="text" width="50%" />
</Box>
)
}