Merged in fix/missing-skeletons (pull request #3486)

fix: Missing footer skeletons

* Fix footer skeletons

* Remove unused export


Approved-by: Matilda Landström
This commit is contained in:
Anton Gunnarsson
2026-01-23 12:35:27 +00:00
parent f8e69f9cc2
commit 82708d0d2d
2 changed files with 11 additions and 5 deletions

View File

@@ -1,7 +1,9 @@
import { Suspense } from "react"
import { getFooter } from "@/lib/trpc/memoizedRequests" import { getFooter } from "@/lib/trpc/memoizedRequests"
import FooterDetails from "./Details" import FooterDetails, { FooterDetailsSkeleton } from "./Details"
import FooterNavigation from "./Navigation" import FooterNavigation, { FooterNavigationSkeleton } from "./Navigation"
import styles from "./footer.module.css" import styles from "./footer.module.css"
@@ -14,8 +16,12 @@ export default async function Footer() {
return ( return (
<footer className={styles.footer}> <footer className={styles.footer}>
<FooterNavigation /> <Suspense fallback={<FooterNavigationSkeleton />}>
<FooterDetails /> <FooterNavigation />
</Suspense>
<Suspense fallback={<FooterDetailsSkeleton />}>
<FooterDetails />
</Suspense>
</footer> </footer>
) )
} }

View File

@@ -105,7 +105,7 @@ export default function MyPagesMenuWrapper() {
) )
} }
export function MyPagesMenuWrapperSkeleton() { function MyPagesMenuWrapperSkeleton() {
return ( return (
<div> <div>
<MyPagesMenuSkeleton /> <MyPagesMenuSkeleton />