feat/sidebar-skeleton: added sidebar skeleton
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user