Prepare for using PPR (#1236)

This commit is contained in:
Lee Robinson
2024-04-17 21:54:09 -05:00
committed by GitHub
parent 610b0e8692
commit 887d437795
16 changed files with 241 additions and 237 deletions

View File

@@ -1,15 +1,12 @@
import Footer from 'components/layout/footer';
import { Suspense } from 'react';
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<Suspense>
<>
<div className="w-full">
<div className="mx-8 max-w-2xl py-20 sm:mx-auto">
<Suspense>{children}</Suspense>
</div>
<div className="mx-8 max-w-2xl py-20 sm:mx-auto">{children}</div>
</div>
<Footer />
</Suspense>
</>
);
}