Add skeleton loader for MobileMenu

This commit is contained in:
Anton Gunnarsson
2024-11-14 13:44:58 +01:00
parent 4c6d72a402
commit ef825d85aa
2 changed files with 19 additions and 1 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import Image from "@/components/Image"
import { getIntl } from "@/i18n"
import { getLang } from "@/i18n/serverContext"
import { MobileMenuSkeleton } from "./MobileMenu"
import MobileMenuWrapper from "./MobileMenuWrapper"
import MyPagesMenuWrapper, {
MyPagesMenuWrapperSkeleton,
@@ -37,7 +38,7 @@ export default async function MainMenu() {
<Suspense fallback={<MyPagesMenuWrapperSkeleton />}>
<MyPagesMenuWrapper />
</Suspense>
<Suspense fallback={"Loading menu"}>
<Suspense fallback={<MobileMenuSkeleton />}>
<MobileMenuWrapper>
<NavigationMenu isMobile={true} />
</MobileMenuWrapper>