Loading.tsx for webviews and suspense for footer
This commit is contained in:
5
app/[lang]/webview/loading.tsx
Normal file
5
app/[lang]/webview/loading.tsx
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import LoadingSpinner from "@/components/LoadingSpinner"
|
||||||
|
|
||||||
|
export default function Loading() {
|
||||||
|
return <LoadingSpinner />
|
||||||
|
}
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import { Suspense } from "react"
|
||||||
|
|
||||||
import { getFooter, getLanguageSwitcher } from "@/lib/trpc/memoizedRequests"
|
import { getFooter, getLanguageSwitcher } from "@/lib/trpc/memoizedRequests"
|
||||||
|
|
||||||
import FooterDetails from "./Details"
|
import FooterDetails from "./Details"
|
||||||
@@ -10,9 +12,11 @@ export function preload() {
|
|||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
return (
|
return (
|
||||||
|
<Suspense>
|
||||||
<footer>
|
<footer>
|
||||||
<FooterNavigation />
|
<FooterNavigation />
|
||||||
<FooterDetails />
|
<FooterDetails />
|
||||||
</footer>
|
</footer>
|
||||||
|
</Suspense>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user