mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
Updates
This commit is contained in:
parent
047e5fe566
commit
d90181fe29
@ -59,8 +59,7 @@ export default async function LocaleLayout({ children, params: { locale } }: Loc
|
||||
<NextIntlClientProvider locale={locale} messages={messages}>
|
||||
<Header locale={locale} />
|
||||
<main className="flex-1">{children}</main>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
{/* https://github.com/vercel/next.js/issues/42292 */}
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<Footer locale={locale} />
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
|
@ -31,14 +31,12 @@ const Header = ({ locale }: HeaderProps) => {
|
||||
</div>
|
||||
|
||||
<div className="absolute left-1/2 top-1/2 hidden -translate-x-1/2 -translate-y-1/2 transform md:flex">
|
||||
{/* @ts-expect-error Server Component */}
|
||||
{/* https://github.com/vercel/next.js/issues/42292 */}
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<DesktopMenu locale={locale} />
|
||||
</div>
|
||||
<div className="flex justify-end md:w-1/3">
|
||||
<Suspense fallback={<OpenCart />}>
|
||||
{/* @ts-expect-error Server Component */}
|
||||
{/* https://github.com/vercel/next.js/issues/42292 */}
|
||||
{/* @ts-expect-error Server Component (https://github.com/vercel/next.js/issues/42292) */}
|
||||
<Cart />
|
||||
</Suspense>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user