Splitted sidebar skeletons

This commit is contained in:
Linus Flood
2024-12-17 07:45:55 +01:00
parent daa677d605
commit c45ef9d4a7
7 changed files with 81 additions and 18 deletions

View File

@@ -1,7 +1,7 @@
import { Suspense } from "react"
import Sidebar from "@/components/MyPages/Sidebar"
import SidebarSkeleton from "@/components/MyPages/Sidebar/SidebarSkeleton"
import SidebarNavigationSkeleton from "@/components/MyPages/Sidebar/SidebarNavigationSkeleton"
import Surprises from "@/components/MyPages/Surprises"
import styles from "./layout.module.css"
@@ -17,7 +17,7 @@ export default async function MyPagesLayout({
<section className={styles.layout}>
{breadcrumbs}
<section className={styles.content}>
<Suspense fallback={<SidebarSkeleton />}>
<Suspense fallback={<SidebarNavigationSkeleton />}>
<Sidebar />
</Suspense>
{children}