feat/sidebar-skeleton: added sidebar skeleton

This commit is contained in:
Linus Flood
2024-12-17 07:17:30 +01:00
parent 39c3a8bf76
commit daa677d605
4 changed files with 23 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import { Suspense } from "react"
import Blocks from "@/components/Blocks"
import Hero from "@/components/Hero"
import SidebarSkeleton from "@/components/MyPages/Sidebar/SidebarSkeleton"
import Sidebar from "@/components/Sidebar"
import LinkChips from "@/components/TempDesignSystem/LinkChips"
import Preamble from "@/components/TempDesignSystem/Text/Preamble"
@@ -56,7 +57,9 @@ export default function StaticPage({
</main>
{"sidebar" in content && content.sidebar?.length ? (
<Sidebar blocks={content.sidebar} />
<Suspense fallback={<SidebarSkeleton />}>
<Sidebar blocks={content.sidebar} />
</Suspense>
) : null}
</div>
</section>