mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Update dependencies and fix TS errors. (#1041)
This commit is contained in:
@@ -9,7 +9,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
|
||||
<Suspense>{children}</Suspense>
|
||||
</div>
|
||||
</div>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
);
|
||||
|
@@ -34,7 +34,6 @@ export default async function RootLayout({ children }: { children: ReactNode })
|
||||
return (
|
||||
<html lang="en" className={inter.variable}>
|
||||
<body className="bg-white text-black selection:bg-teal-300 dark:bg-black dark:text-white dark:selection:bg-fuchsia-600 dark:selection:text-white">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Navbar />
|
||||
<Suspense>
|
||||
<main>{children}</main>
|
||||
|
@@ -22,13 +22,10 @@ export const metadata = {
|
||||
export default async function HomePage() {
|
||||
return (
|
||||
<>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<ThreeItemGrid />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Carousel />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
</Suspense>
|
||||
|
@@ -97,7 +97,6 @@ export default async function ProductPage({ params }: { params: { handle: string
|
||||
</div>
|
||||
|
||||
<div className="p-6 lg:col-span-2">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<VariantSelector options={product.options} variants={product.variants} />
|
||||
|
||||
{product.descriptionHtml ? (
|
||||
@@ -108,10 +107,8 @@ export default async function ProductPage({ params }: { params: { handle: string
|
||||
</div>
|
||||
</div>
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<RelatedProducts id={product.id} />
|
||||
<Suspense>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
</Suspense>
|
||||
|
@@ -16,7 +16,6 @@ export default function SearchLayout({ children }: { children: React.ReactNode }
|
||||
<FilterList list={sorting} title="Sort by" />
|
||||
</div>
|
||||
</div>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
<Footer />
|
||||
</Suspense>
|
||||
);
|
||||
|
Reference in New Issue
Block a user