Update dependencies and fix TS errors. (#1041)

This commit is contained in:
Lee Robinson
2023-06-06 18:36:44 -07:00
committed by GitHub
parent 7de01c40b9
commit fecc60eb36
10 changed files with 281 additions and 290 deletions

View File

@@ -9,7 +9,6 @@ export default function Layout({ children }: { children: React.ReactNode }) {
<Suspense>{children}</Suspense>
</div>
</div>
{/* @ts-expect-error Server Component */}
<Footer />
</Suspense>
);

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>
);