diff --git a/app/[locale]/shop-list/layout.tsx b/app/[locale]/shop-list/layout.tsx
index 43d187830..16fd7989e 100644
--- a/app/[locale]/shop-list/layout.tsx
+++ b/app/[locale]/shop-list/layout.tsx
@@ -1,15 +1,5 @@
-import Footer from 'components/layout/footer';
import { Suspense } from 'react';
export default function Layout({ children }: { children: React.ReactNode }) {
- return (
-
-
-
-
- );
+ return {children};
}
diff --git a/app/[locale]/shop-list/page.tsx b/app/[locale]/shop-list/page.tsx
index ece352e8d..9f927d149 100644
--- a/app/[locale]/shop-list/page.tsx
+++ b/app/[locale]/shop-list/page.tsx
@@ -1,10 +1,13 @@
import type { Metadata } from 'next';
-import LogoNamemark from 'components/icons/namemark';
+import Footer from 'components/layout/footer';
+import Navbar from 'components/layout/navbar';
import { SupportedLocale } from 'components/layout/navbar/language-control';
import Prose from 'components/prose';
-import { getPage } from 'lib/shopify';
+import { getCart, getPage } from 'lib/shopify';
+import { cookies } from 'next/headers';
import { notFound } from 'next/navigation';
+import { Suspense } from 'react';
import ShopsTitle from './ShopsTitle';
export const runtime = 'edge';
@@ -32,18 +35,29 @@ export async function generateMetadata({
}
export default async function Page({ params }: { params: { locale?: SupportedLocale } }) {
+ const cartId = cookies().get('cartId')?.value;
+ let cart;
+
+ if (cartId) {
+ cart = await getCart(cartId);
+ }
+
const page = await getPage({ handle: 'shop-list', language: params?.locale?.toUpperCase() });
if (!page) return notFound();
return (
-
-
-
+
+
+
-
-
{page.title}
-
+
+
+
+
);
}